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

Side by Side Diff: chrome/browser/ui/omnibox/omnibox_view.h

Issue 29943002: Limit display of the virtual keyboard to state changes triggered from a user gesture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ash_unittests Created 6 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 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 // This file defines the interface class OmniboxView. Each toolkit will 5 // This file defines the interface class OmniboxView. Each toolkit will
6 // implement the edit view differently, so that code is inherently platform 6 // implement the edit view differently, so that code is inherently platform
7 // specific. However, the OmniboxEditModel needs to do some communication with 7 // specific. However, the OmniboxEditModel needs to do some communication with
8 // the view. Since the model is shared between platforms, we need to define an 8 // the view. Since the model is shared between platforms, we need to define an
9 // interface that all view implementations will share. 9 // interface that all view implementations will share.
10 10
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // Returns the omnibox's width in pixels. 202 // Returns the omnibox's width in pixels.
203 virtual int GetWidth() const = 0; 203 virtual int GetWidth() const = 0;
204 204
205 // Returns true if the user is composing something in an IME. 205 // Returns true if the user is composing something in an IME.
206 virtual bool IsImeComposing() const = 0; 206 virtual bool IsImeComposing() const = 0;
207 207
208 // Returns true if we know for sure that an IME is showing a popup window, 208 // Returns true if we know for sure that an IME is showing a popup window,
209 // which may overlap the omnibox's popup window. 209 // which may overlap the omnibox's popup window.
210 virtual bool IsImeShowingPopup() const; 210 virtual bool IsImeShowingPopup() const;
211 211
212 // Display a virtual keybaord or alternate input view if enabled.
213 virtual void ShowImeIfNeeded();
214
212 // Returns true if the view is displaying UI that indicates that query 215 // Returns true if the view is displaying UI that indicates that query
213 // refinement will take place when the user selects the current match. For 216 // refinement will take place when the user selects the current match. For
214 // search matches, this will cause the omnibox to search over the existing 217 // search matches, this will cause the omnibox to search over the existing
215 // corpus (e.g. Images) rather than start a new Web search. This method will 218 // corpus (e.g. Images) rather than start a new Web search. This method will
216 // only ever return true on mobile ports. 219 // only ever return true on mobile ports.
217 virtual bool IsIndicatingQueryRefinement() const; 220 virtual bool IsIndicatingQueryRefinement() const;
218 221
219 // Returns |text| with any leading javascript schemas stripped. 222 // Returns |text| with any leading javascript schemas stripped.
220 static base::string16 StripJavascriptSchemas(const base::string16& text); 223 static base::string16 StripJavascriptSchemas(const base::string16& text);
221 224
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // |model_| can be NULL in tests. 262 // |model_| can be NULL in tests.
260 scoped_ptr<OmniboxEditModel> model_; 263 scoped_ptr<OmniboxEditModel> model_;
261 OmniboxEditController* controller_; 264 OmniboxEditController* controller_;
262 265
263 // The object that handles additional command functionality exposed on the 266 // The object that handles additional command functionality exposed on the
264 // edit, such as invoking the keyword editor. 267 // edit, such as invoking the keyword editor.
265 CommandUpdater* command_updater_; 268 CommandUpdater* command_updater_;
266 }; 269 };
267 270
268 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_H_ 271 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/textinput_test_helper.cc ('k') | chrome/browser/ui/omnibox/omnibox_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698