mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 01:26:03 +01:00
2f5838eaaa
This change adds a CefCommandHandler::OnChromeCommand callback for optionally handling Chrome commands triggered via menus or keyboard shortcuts. Supported command IDs are listed in a new cef_command_ids.h header file. To test: Run `cefclient --enable-chrome-runtime --hide-controls`. Most commands will blocked and removed from context menus.
30 lines
945 B
C++
30 lines
945 B
C++
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
// can be found in the LICENSE file.
|
|
|
|
#ifndef CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_HANDLER_STD_H_
|
|
#define CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_HANDLER_STD_H_
|
|
#pragma once
|
|
|
|
#include "tests/cefclient/browser/client_handler.h"
|
|
|
|
namespace client {
|
|
|
|
// Client handler implementation for windowed browsers. There will only ever be
|
|
// one browser per handler instance.
|
|
class ClientHandlerStd : public ClientHandler {
|
|
public:
|
|
ClientHandlerStd(Delegate* delegate,
|
|
bool with_controls,
|
|
const std::string& startup_url);
|
|
|
|
private:
|
|
// Include the default reference counting implementation.
|
|
IMPLEMENT_REFCOUNTING(ClientHandlerStd);
|
|
DISALLOW_COPY_AND_ASSIGN(ClientHandlerStd);
|
|
};
|
|
|
|
} // namespace client
|
|
|
|
#endif // CEF_TESTS_CEFCLIENT_BROWSER_CLIENT_HANDLER_STD_H_
|