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

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

Issue 231022: Reverting 27113. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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) 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
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // Every piece of code that can change the edit should call these functions 121 // Every piece of code that can change the edit should call these functions
122 // before and after the change. These functions determine if anything 122 // before and after the change. These functions determine if anything
123 // meaningful changed, and do any necessary updating and notification. 123 // meaningful changed, and do any necessary updating and notification.
124 virtual void OnBeforePossibleChange() = 0; 124 virtual void OnBeforePossibleChange() = 0;
125 // OnAfterPossibleChange() returns true if there was a change that caused it 125 // OnAfterPossibleChange() returns true if there was a change that caused it
126 // to call UpdatePopup(). 126 // to call UpdatePopup().
127 virtual bool OnAfterPossibleChange() = 0; 127 virtual bool OnAfterPossibleChange() = 0;
128 128
129 // Returns the gfx::NativeView of the edit view. 129 // Returns the gfx::NativeView of the edit view.
130 virtual gfx::NativeView GetNativeView() const = 0; 130 virtual gfx::NativeView GetNativeView() const = 0;
131
132 // Returns the gfx::NativeView of the edit view that should receive focus when
133 // the location bar is focused.
134 virtual gfx::NativeView GetFocusNativeView() const = 0;
135 }; 131 };
136 132
137 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ 133 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit.h ('k') | chrome/browser/autocomplete/autocomplete_edit_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698