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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.h

Issue 11141019: Re-enable CJK omnibox suggest on Metro UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments Created 8 years, 2 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/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_view_win.h
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.h b/chrome/browser/ui/views/omnibox/omnibox_view_win.h
index 7a9e8dbc4dcd5149dccb0ae6aa8a4b1fd9c3ee0a..d05b591721b370b81e5ec9502e9fa6f14bf5b631 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.h
@@ -18,6 +18,7 @@
#include "chrome/browser/ui/omnibox/omnibox_view.h"
#include "chrome/browser/ui/toolbar/toolbar_model.h"
#include "chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.h"
+#include "ui/base/ime/win/tsf_event_router.h"
#include "ui/base/models/simple_menu_model.h"
#include "ui/base/win/extra_sdk_defines.h"
#include "ui/gfx/font.h"
@@ -42,6 +43,7 @@ class OmniboxViewWin
ES_NOHIDESEL> >,
public CRichEditCommands<OmniboxViewWin>,
public ui::SimpleMenuModel::Delegate,
+ public ui::TsfEventRouter::Observer,
public OmniboxView {
public:
struct State {
@@ -329,6 +331,10 @@ class OmniboxViewWin
// If a host name is found, it makes it visually stronger.
virtual void EmphasizeURLComponents() OVERRIDE;
+ // TsfEventRouter::Observer
+ virtual void OnTextUpdated() OVERRIDE;
+ virtual void OnCandidateWindowCountChanged(size_t window_count) OVERRIDE;
+
// Erases the portion of the selection in the font's y-adjustment area. For
// some reason the edit draws the selection rect here even though it's not
// part of the font.
@@ -511,6 +517,9 @@ class OmniboxViewWin
// The native view host.
views::NativeViewHost* native_view_host_;
+ // TSF related event router.
+ scoped_refptr<ui::TsfEventRouter> tsf_event_router_;
+
DISALLOW_COPY_AND_ASSIGN(OmniboxViewWin);
};
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698