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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_delegate.h

Issue 15745031: Restyle omnibox popup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Go back to 3 max search suggestions for now Created 7 years, 6 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698