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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.h

Issue 68103008: Hide IME autocompletion when Omnibox popup closes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual void RevertAll() OVERRIDE; 90 virtual void RevertAll() OVERRIDE;
91 virtual void UpdatePopup() OVERRIDE; 91 virtual void UpdatePopup() OVERRIDE;
92 virtual void SetFocus() OVERRIDE; 92 virtual void SetFocus() OVERRIDE;
93 virtual void ApplyCaretVisibility() OVERRIDE; 93 virtual void ApplyCaretVisibility() OVERRIDE;
94 virtual void OnTemporaryTextMaybeChanged( 94 virtual void OnTemporaryTextMaybeChanged(
95 const string16& display_text, 95 const string16& display_text,
96 bool save_original_selection, 96 bool save_original_selection,
97 bool notify_text_changed) OVERRIDE; 97 bool notify_text_changed) OVERRIDE;
98 virtual bool OnInlineAutocompleteTextMaybeChanged( 98 virtual bool OnInlineAutocompleteTextMaybeChanged(
99 const string16& display_text, size_t user_text_length) OVERRIDE; 99 const string16& display_text, size_t user_text_length) OVERRIDE;
100 virtual void OnInlineAutocompleteTextCleared() OVERRIDE;
100 virtual void OnRevertTemporaryText() OVERRIDE; 101 virtual void OnRevertTemporaryText() OVERRIDE;
101 virtual void OnBeforePossibleChange() OVERRIDE; 102 virtual void OnBeforePossibleChange() OVERRIDE;
102 virtual bool OnAfterPossibleChange() OVERRIDE; 103 virtual bool OnAfterPossibleChange() OVERRIDE;
103 virtual gfx::NativeView GetNativeView() const OVERRIDE; 104 virtual gfx::NativeView GetNativeView() const OVERRIDE;
104 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE; 105 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE;
105 virtual void SetGrayTextAutocompletion(const string16& input) OVERRIDE; 106 virtual void SetGrayTextAutocompletion(const string16& input) OVERRIDE;
106 virtual string16 GetGrayTextAutocompletion() const OVERRIDE; 107 virtual string16 GetGrayTextAutocompletion() const OVERRIDE;
107 virtual int TextWidth() const OVERRIDE; 108 virtual int TextWidth() const OVERRIDE;
108 virtual bool IsImeComposing() const OVERRIDE; 109 virtual bool IsImeComposing() const OVERRIDE;
109 virtual bool IsImeShowingPopup() const OVERRIDE; 110 virtual bool IsImeShowingPopup() const OVERRIDE;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 202
202 // Indicates if we want to select all text in the omnibox when we get a 203 // Indicates if we want to select all text in the omnibox when we get a
203 // GESTURE_TAP. We want to select all only when the textfield is not in focus 204 // GESTURE_TAP. We want to select all only when the textfield is not in focus
204 // and gets a tap. So we use this variable to remember focus state before tap. 205 // and gets a tap. So we use this variable to remember focus state before tap.
205 bool select_all_on_gesture_tap_; 206 bool select_all_on_gesture_tap_;
206 207
207 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); 208 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews);
208 }; 209 };
209 210
210 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 211 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698