OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_DELEGATE_H_ | |
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_DELEGATE_H_ | |
7 | |
8 #include "ui/gfx/native_widget_types.h" | |
9 | |
10 namespace gfx { | |
11 class Point; | |
12 } | |
13 | |
14 namespace ui { | |
15 class ThemeProvider; | |
16 } | |
17 | |
18 // Delegate interface implemented by the omnibox embedder to provide | |
19 // positioning and rendering information for the popup. | |
20 class OmniboxViewDelegate { | |
Peter Kasting
2013/06/06 18:52:16
Since the only implementer of this is the Location
| |
21 public: | |
22 // Returns the position and width that the popup should be, and also the | |
23 // left and right margins. The suggestions in the popup will be aligned | |
24 // inside the margins. | |
25 virtual void GetPopupPositioningInfo(gfx::Point* top_left_screen_coord, | |
26 int* popup_width, | |
27 int* left_margin, | |
28 int* right_margin) = 0; | |
29 | |
30 virtual ui::ThemeProvider* GetThemeProviderForPopup() = 0; | |
31 | |
32 // Returns the native widget to be the parent of the popup. | |
Peter Kasting
2013/06/06 18:52:16
Nit: to be -> that is?
| |
33 virtual gfx::NativeView GetPopupParent() = 0; | |
34 }; | |
35 | |
36 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_DELEGATE_H_ | |
OLD | NEW |