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

Unified Diff: chrome/browser/chromeos/login/account_screen.cc

Issue 6675005: Integrate the new input method API for Views into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows build. Created 9 years, 9 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 | « no previous file | chrome/browser/chromeos/login/eula_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/account_screen.cc
diff --git a/chrome/browser/chromeos/login/account_screen.cc b/chrome/browser/chromeos/login/account_screen.cc
index 06bae05642d50f9959b722220ce0f1f11b144947..54060efa2cb7c9bc381f6ded491b804d8ec3373b 100644
--- a/chrome/browser/chromeos/login/account_screen.cc
+++ b/chrome/browser/chromeos/login/account_screen.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -15,6 +15,7 @@
#include "content/browser/site_instance.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "googleurl/src/gurl.h"
+#include "views/events/event.h"
#include "views/widget/widget_gtk.h"
namespace chromeos {
@@ -132,8 +133,10 @@ void AccountScreen::NavigationStateChanged(const TabContents* source,
void AccountScreen::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
views::Widget* widget = view()->GetWidget();
- if (widget && event.os_event && !event.skip_in_browser)
- static_cast<views::WidgetGtk*>(widget)->HandleKeyboardEvent(event.os_event);
+ if (widget && event.os_event && !event.skip_in_browser) {
+ views::KeyEvent views_event(reinterpret_cast<GdkEvent*>(event.os_event));
+ static_cast<views::WidgetGtk*>(widget)->HandleKeyboardEvent(views_event);
+ }
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/eula_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698