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

Unified Diff: ui/ozone/demo/ozone_demo.cc

Issue 848953002: [Ozone-Demo] Initialize a default keyboard layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix-surfaceless-demo
Patch Set: Created 5 years, 11 months 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/demo/BUILD.gn ('k') | ui/ozone/demo/ozone_demos.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/demo/ozone_demo.cc
diff --git a/ui/ozone/demo/ozone_demo.cc b/ui/ozone/demo/ozone_demo.cc
index bbb63076d1c1622639cb4b16902a6b1fc6d1261d..32d7fde700b5e46cc1fd03965ce0f80f0cd0e837 100644
--- a/ui/ozone/demo/ozone_demo.cc
+++ b/ui/ozone/demo/ozone_demo.cc
@@ -9,6 +9,8 @@
#include "base/timer/timer.h"
#include "ui/events/event.h"
#include "ui/events/keycodes/dom3/dom_code.h"
+#include "ui/events/ozone/layout/keyboard_layout_engine.h"
+#include "ui/events/ozone/layout/keyboard_layout_engine_manager.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gl/gl_surface.h"
@@ -136,6 +138,8 @@ int main(int argc, char** argv) {
base::MessageLoopForUI message_loop;
ui::OzonePlatform::InitializeForUI();
+ ui::KeyboardLayoutEngineManager::GetKeyboardLayoutEngine()
+ ->SetCurrentLayoutByName("us");
alexst (slow to review) 2015/01/13 21:41:31 Is "us" a know string or is it just something that
dnicoara 2015/01/13 21:46:04 "us" is a known layout. The issue is there is no d
base::RunLoop run_loop;
« no previous file with comments | « ui/ozone/demo/BUILD.gn ('k') | ui/ozone/demo/ozone_demos.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698