OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 13 #pragma once |
14 | 14 |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "base/string16.h" | 17 #include "base/string16.h" |
18 #include "chrome/common/page_transition_types.h" | 18 #include "chrome/common/page_transition_types.h" |
19 #include "gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
20 #include "webkit/glue/window_open_disposition.h" | 20 #include "webkit/glue/window_open_disposition.h" |
21 | 21 |
22 class AutocompleteEditModel; | 22 class AutocompleteEditModel; |
23 class CommandUpdater; | 23 class CommandUpdater; |
24 class GURL; | 24 class GURL; |
25 class TabContents; | 25 class TabContents; |
26 | 26 |
27 #if defined(TOOLKIT_VIEWS) | 27 #if defined(TOOLKIT_VIEWS) |
28 namespace views { | 28 namespace views { |
29 class View; | 29 class View; |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 #if defined(TOOLKIT_VIEWS) | 174 #if defined(TOOLKIT_VIEWS) |
175 // Adds the autocomplete edit view to view hierarchy and | 175 // Adds the autocomplete edit view to view hierarchy and |
176 // returns the views::View of the edit view. | 176 // returns the views::View of the edit view. |
177 virtual views::View* AddToView(views::View* parent) = 0; | 177 virtual views::View* AddToView(views::View* parent) = 0; |
178 #endif | 178 #endif |
179 | 179 |
180 virtual ~AutocompleteEditView() {} | 180 virtual ~AutocompleteEditView() {} |
181 }; | 181 }; |
182 | 182 |
183 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ | 183 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ |
OLD | NEW |