mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add multi-touch support for OSR (issue #1059)
This commit is contained in:
committed by
Marshall Greenblatt
parent
9ba28dd730
commit
5f615a95bc
@@ -3,6 +3,7 @@
|
||||
// can be found in the LICENSE file.
|
||||
|
||||
#include "tests/cefclient/browser/client_browser.h"
|
||||
#include "tests/cefclient/browser/main_context.h"
|
||||
|
||||
#include "include/cef_command_line.h"
|
||||
#include "include/cef_crash_util.h"
|
||||
@@ -39,6 +40,14 @@ class ClientBrowserDelegate : public ClientAppBrowser::Delegate {
|
||||
}
|
||||
}
|
||||
|
||||
void OnBeforeCommandLineProcessing(
|
||||
CefRefPtr<ClientAppBrowser> app,
|
||||
CefRefPtr<CefCommandLine> command_line) OVERRIDE {
|
||||
// Append Chromium command line parameters if touch events are enabled
|
||||
if (client::MainContext::Get()->TouchEventsEnabled())
|
||||
command_line->AppendSwitchWithValue("touch-events", "enabled");
|
||||
}
|
||||
|
||||
private:
|
||||
DISALLOW_COPY_AND_ASSIGN(ClientBrowserDelegate);
|
||||
IMPLEMENT_REFCOUNTING(ClientBrowserDelegate);
|
||||
|
Reference in New Issue
Block a user