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 "content/common/page_transition_types.h" |
19 #include "ui/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 { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 virtual views::View* AddToView(views::View* parent) = 0; | 180 virtual views::View* AddToView(views::View* parent) = 0; |
181 | 181 |
182 // Performs the drop of a drag and drop operation on the view. | 182 // Performs the drop of a drag and drop operation on the view. |
183 virtual int OnPerformDrop(const views::DropTargetEvent& event) = 0; | 183 virtual int OnPerformDrop(const views::DropTargetEvent& event) = 0; |
184 #endif | 184 #endif |
185 | 185 |
186 virtual ~AutocompleteEditView() {} | 186 virtual ~AutocompleteEditView() {} |
187 }; | 187 }; |
188 | 188 |
189 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ | 189 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ |
OLD | NEW |