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

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

Issue 10854017: Basic metro snap view omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos compilation. Created 8 years, 4 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
« no previous file with comments | « base/win/metro.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 29 matching lines...) Expand all
40 } 40 }
41 41
42 namespace views { 42 namespace views {
43 class DropTargetEvent; 43 class DropTargetEvent;
44 class View; 44 class View;
45 } 45 }
46 #endif 46 #endif
47 47
48 class OmniboxView { 48 class OmniboxView {
49 public: 49 public:
50 enum WindowMode {
51 NORMAL,
52 POPUP,
53 DISABLED,
54 };
55
50 virtual ~OmniboxView(); 56 virtual ~OmniboxView();
51 57
52 // Used by the automation system for getting at the model from the view. 58 // Used by the automation system for getting at the model from the view.
53 OmniboxEditModel* model() { return model_.get(); } 59 OmniboxEditModel* model() { return model_.get(); }
54 const OmniboxEditModel* model() const { return model_.get(); } 60 const OmniboxEditModel* model() const { return model_.get(); }
55 61
56 CommandUpdater* command_updater() { return command_updater_; } 62 CommandUpdater* command_updater() { return command_updater_; }
57 const CommandUpdater* command_updater() const { return command_updater_; } 63 const CommandUpdater* command_updater() const { return command_updater_; }
58 64
59 // 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
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 scoped_ptr<OmniboxEditModel> model_; 254 scoped_ptr<OmniboxEditModel> model_;
249 OmniboxEditController* controller_; 255 OmniboxEditController* controller_;
250 ToolbarModel* toolbar_model_; 256 ToolbarModel* toolbar_model_;
251 257
252 // The object that handles additional command functionality exposed on the 258 // The object that handles additional command functionality exposed on the
253 // edit, such as invoking the keyword editor. 259 // edit, such as invoking the keyword editor.
254 CommandUpdater* command_updater_; 260 CommandUpdater* command_updater_;
255 }; 261 };
256 262
257 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_H_ 263 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_VIEW_H_
OLDNEW
« no previous file with comments | « base/win/metro.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698