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

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

Issue 9985012: Adjust location of text in omnibox edit control for Metro. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minimize diff. Created 8 years, 7 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 AutocompleteEditModel needs to do some communication 7 // specific. However, the AutocompleteEditModel needs to do some communication
8 // with the view. Since the model is shared between platforms, we need to 8 // with the view. Since the model is shared between platforms, we need to
9 // define an interface that all view implementations will share. 9 // define an interface that all view implementations will share.
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #endif 47 #endif
48 48
49 class OmniboxView { 49 class OmniboxView {
50 public: 50 public:
51 #if defined(TOOLKIT_VIEWS) 51 #if defined(TOOLKIT_VIEWS)
52 static OmniboxView* CreateOmniboxView(AutocompleteEditController* controller, 52 static OmniboxView* CreateOmniboxView(AutocompleteEditController* controller,
53 ToolbarModel* toolbar_model, 53 ToolbarModel* toolbar_model,
54 Profile* profile, 54 Profile* profile,
55 CommandUpdater* command_updater, 55 CommandUpdater* command_updater,
56 bool popup_window_mode, 56 bool popup_window_mode,
57 int height,
57 LocationBarView* location_bar); 58 LocationBarView* location_bar);
58 #endif 59 #endif
59 60
60 // Used by the automation system for getting at the model from the view. 61 // Used by the automation system for getting at the model from the view.
61 virtual AutocompleteEditModel* model() = 0; 62 virtual AutocompleteEditModel* model() = 0;
62 virtual const AutocompleteEditModel* model() const = 0; 63 virtual const AutocompleteEditModel* model() const = 0;
63 64
64 // For use when switching tabs, this saves the current state onto the tab so 65 // For use when switching tabs, this saves the current state onto the tab so
65 // that it can be restored during a later call to Update(). 66 // that it can be restored during a later call to Update().
66 virtual void SaveStateToTab(content::WebContents* tab) = 0; 67 virtual void SaveStateToTab(content::WebContents* tab) = 0;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 220
220 // Returns the current clipboard contents as a string that can be pasted in. 221 // Returns the current clipboard contents as a string that can be pasted in.
221 // In addition to just getting CF_UNICODETEXT out, this can also extract URLs 222 // In addition to just getting CF_UNICODETEXT out, this can also extract URLs
222 // from bookmarks on the clipboard. 223 // from bookmarks on the clipboard.
223 static string16 GetClipboardText(); 224 static string16 GetClipboardText();
224 225
225 virtual ~OmniboxView() {} 226 virtual ~OmniboxView() {}
226 }; 227 };
227 228
228 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_H_ 229 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698