OLD | NEW |
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 "app/gfx/native_widget_types.h" |
17 #include "chrome/common/page_transition_types.h" | 17 #include "chrome/common/page_transition_types.h" |
18 #include "webkit/glue/window_open_disposition.h" | 18 #include "webkit/glue/window_open_disposition.h" |
19 | 19 |
20 class AutocompleteEditModel; | 20 class AutocompleteEditModel; |
21 class GURL; | 21 class GURL; |
22 class TabContents; | 22 class TabContents; |
23 | 23 |
24 class AutocompleteEditView { | 24 class AutocompleteEditView { |
25 public: | 25 public: |
26 // 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 }; | 131 }; |
132 | 132 |
133 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ | 133 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ |
OLD | NEW |