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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_view.h

Issue 6913026: Compact Navigation prototype (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 AutocompleteEditView. Each toolkit 5 // This file defines the interface class AutocompleteEditView. Each toolkit
6 // will implement the edit view differently, so that code is inherently 6 // will implement the edit view differently, so that code is inherently
7 // platform specific. However, the AutocompleteEditModel needs to do some 7 // platform specific. However, the AutocompleteEditModel needs to do some
8 // communication with the view. Since the model is shared between platforms, 8 // communication with the view. Since the model is shared between platforms,
9 // we need to define an interface that all view implementations will share. 9 // we need to define an interface that all view implementations will share.
10 10
11 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ 11 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_
(...skipping 14 matching lines...) Expand all
26 26
27 #if defined(TOOLKIT_VIEWS) 27 #if defined(TOOLKIT_VIEWS)
28 namespace views { 28 namespace views {
29 class DropTargetEvent; 29 class DropTargetEvent;
30 class View; 30 class View;
31 } // namespace views 31 } // namespace views
32 #endif 32 #endif
33 33
34 class AutocompleteEditView { 34 class AutocompleteEditView {
35 public: 35 public:
36
Peter Kasting 2011/05/03 18:04:24 Nit: Don't add this. This file should just be rev
sky 2011/05/03 18:38:32 No newline here.
SteveT 2011/05/06 18:48:43 Done - reverting as per Peter's suggestion.
SteveT 2011/05/06 18:48:43 Done.
36 // Used by the automation system for getting at the model from the view. 37 // Used by the automation system for getting at the model from the view.
37 virtual AutocompleteEditModel* model() = 0; 38 virtual AutocompleteEditModel* model() = 0;
38 virtual const AutocompleteEditModel* model() const = 0; 39 virtual const AutocompleteEditModel* model() const = 0;
39 40
40 // For use when switching tabs, this saves the current state onto the tab so 41 // For use when switching tabs, this saves the current state onto the tab so
41 // that it can be restored during a later call to Update(). 42 // that it can be restored during a later call to Update().
42 virtual void SaveStateToTab(TabContents* tab) = 0; 43 virtual void SaveStateToTab(TabContents* tab) = 0;
43 44
44 // Called when any LocationBarView state changes. If 45 // Called when any LocationBarView state changes. If
45 // |tab_for_state_restoring| is non-NULL, it points to a TabContents whose 46 // |tab_for_state_restoring| is non-NULL, it points to a TabContents whose
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 virtual views::View* AddToView(views::View* parent) = 0; 181 virtual views::View* AddToView(views::View* parent) = 0;
181 182
182 // Performs the drop of a drag and drop operation on the view. 183 // Performs the drop of a drag and drop operation on the view.
183 virtual int OnPerformDrop(const views::DropTargetEvent& event) = 0; 184 virtual int OnPerformDrop(const views::DropTargetEvent& event) = 0;
184 #endif 185 #endif
185 186
186 virtual ~AutocompleteEditView() {} 187 virtual ~AutocompleteEditView() {}
187 }; 188 };
188 189
189 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ 190 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698