Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: ui/ozone/platform/egltest/ozone_platform_egltest.cc

Issue 742103002: Ozone keyboard layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lite-code
Patch Set: reeeeebase Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/egltest/egltest.gypi ('k') | ui/ozone/platform/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/egltest/ozone_platform_egltest.cc
diff --git a/ui/ozone/platform/egltest/ozone_platform_egltest.cc b/ui/ozone/platform/egltest/ozone_platform_egltest.cc
index d6d0850e5e072da8db101e26ec19f302139f5d1d..4403635476023c0478c925a4d7166b2304f02110 100644
--- a/ui/ozone/platform/egltest/ozone_platform_egltest.cc
+++ b/ui/ozone/platform/egltest/ozone_platform_egltest.cc
@@ -16,6 +16,8 @@
#include "ui/events/ozone/device/device_manager.h"
#include "ui/events/ozone/evdev/event_factory_evdev.h"
#include "ui/events/ozone/events_ozone.h"
+#include "ui/events/ozone/layout/keyboard_layout_engine_manager.h"
+#include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h"
#include "ui/events/platform/platform_event_dispatcher.h"
#include "ui/gfx/vsync_provider.h"
#include "ui/ozone/common/egl_util.h"
@@ -272,8 +274,10 @@ bool SurfaceFactoryEgltest::LoadEGLGLES2Bindings(
const int32* SurfaceFactoryEgltest::GetEGLSurfaceProperties(
const int32* desired_list) {
static const int32 broken_props[] = {
- EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
- EGL_SURFACE_TYPE, EGL_WINDOW_BIT | EGL_PBUFFER_BIT,
+ EGL_RENDERABLE_TYPE,
+ EGL_OPENGL_ES2_BIT,
+ EGL_SURFACE_TYPE,
+ EGL_WINDOW_BIT | EGL_PBUFFER_BIT,
EGL_NONE,
};
return broken_props;
@@ -337,11 +341,8 @@ class OzonePlatformEgltest : public OzonePlatform {
scoped_ptr<PlatformWindow> CreatePlatformWindow(
PlatformWindowDelegate* delegate,
const gfx::Rect& bounds) override {
- return make_scoped_ptr<PlatformWindow>(
- new EgltestWindow(delegate,
- &eglplatform_shim_,
- event_factory_ozone_.get(),
- bounds));
+ return make_scoped_ptr<PlatformWindow>(new EgltestWindow(
+ delegate, &eglplatform_shim_, event_factory_ozone_.get(), bounds));
}
scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override {
return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone());
@@ -352,8 +353,11 @@ class OzonePlatformEgltest : public OzonePlatform {
if (!surface_factory_ozone_)
surface_factory_ozone_.reset(
new SurfaceFactoryEgltest(&eglplatform_shim_));
- event_factory_ozone_.reset(
- new EventFactoryEvdev(NULL, device_manager_.get()));
+ KeyboardLayoutEngineManager::SetKeyboardLayoutEngine(
+ make_scoped_ptr(new StubKeyboardLayoutEngine()));
+ event_factory_ozone_.reset(new EventFactoryEvdev(
+ NULL, device_manager_.get(),
+ KeyboardLayoutEngineManager::GetKeyboardLayoutEngine()));
cursor_factory_ozone_.reset(new CursorFactoryOzone());
gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost());
}
« no previous file with comments | « ui/ozone/platform/egltest/egltest.gypi ('k') | ui/ozone/platform/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698