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

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

Issue 160378: Make TOOLKIT_VIEWS port use views-based Autocomplete popup.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_gtk.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_
12 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ 12 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_
13 13
14 #include <string> 14 #include <string>
15 15
16 #include "base/gfx/native_widget_types.h"
16 #include "chrome/common/page_transition_types.h" 17 #include "chrome/common/page_transition_types.h"
17 #include "webkit/glue/window_open_disposition.h" 18 #include "webkit/glue/window_open_disposition.h"
18 19
19 class AutocompleteEditModel; 20 class AutocompleteEditModel;
20 class GURL; 21 class GURL;
21 class TabContents; 22 class TabContents;
22 23
23 class AutocompleteEditView { 24 class AutocompleteEditView {
24 public: 25 public:
25 // Used by the automation system for getting at the model from the view. 26 // Used by the automation system for getting at the model from the view.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // reset the user's original selection. 115 // reset the user's original selection.
115 virtual void OnRevertTemporaryText() = 0; 116 virtual void OnRevertTemporaryText() = 0;
116 117
117 // Every piece of code that can change the edit should call these functions 118 // Every piece of code that can change the edit should call these functions
118 // before and after the change. These functions determine if anything 119 // before and after the change. These functions determine if anything
119 // meaningful changed, and do any necessary updating and notification. 120 // meaningful changed, and do any necessary updating and notification.
120 virtual void OnBeforePossibleChange() = 0; 121 virtual void OnBeforePossibleChange() = 0;
121 // OnAfterPossibleChange() returns true if there was a change that caused it 122 // OnAfterPossibleChange() returns true if there was a change that caused it
122 // to call UpdatePopup(). 123 // to call UpdatePopup().
123 virtual bool OnAfterPossibleChange() = 0; 124 virtual bool OnAfterPossibleChange() = 0;
125
126 // Returns the gfx::NativeView of the edit view.
127 virtual gfx::NativeView GetNativeView() const = 0;
124 }; 128 };
125 129
126 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ 130 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698