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

Side by Side Diff: chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.h

Issue 10337010: Revert r123782. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include <map> 11 #include <map>
12 #include <string> 12 #include <string>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "chrome/browser/autocomplete/autocomplete_match.h" 17 #include "chrome/browser/autocomplete/autocomplete_match.h"
18 #include "chrome/browser/autocomplete/autocomplete_popup_view.h" 18 #include "chrome/browser/autocomplete/autocomplete_popup_view.h"
19 #include "content/public/browser/notification_observer.h" 19 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/notification_registrar.h" 20 #include "content/public/browser/notification_registrar.h"
21 #include "ui/base/gtk/gtk_signal.h" 21 #include "ui/base/gtk/gtk_signal.h"
22 #include "ui/gfx/font.h" 22 #include "ui/gfx/font.h"
23 #include "webkit/glue/window_open_disposition.h" 23 #include "webkit/glue/window_open_disposition.h"
24 24
25 class AutocompleteEditModel; 25 class AutocompleteEditModel;
26 class AutocompletePopupModel; 26 class AutocompletePopupModel;
27 class ThemeServiceGtk; 27 class GtkThemeService;
28 class OmniboxView; 28 class OmniboxView;
29 class SkBitmap; 29 class SkBitmap;
30 30
31 namespace gfx { 31 namespace gfx {
32 class Image; 32 class Image;
33 } 33 }
34 34
35 namespace ui { 35 namespace ui {
36 class GtkSignalRegistrar; 36 class GtkSignalRegistrar;
37 } 37 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 scoped_ptr<AutocompletePopupModel> model_; 109 scoped_ptr<AutocompletePopupModel> model_;
110 OmniboxView* omnibox_view_; 110 OmniboxView* omnibox_view_;
111 GtkWidget* location_bar_; 111 GtkWidget* location_bar_;
112 112
113 // Our popup window, which is the only widget used, and we paint it on our 113 // Our popup window, which is the only widget used, and we paint it on our
114 // own. This widget shouldn't be exposed outside of this class. 114 // own. This widget shouldn't be exposed outside of this class.
115 GtkWidget* window_; 115 GtkWidget* window_;
116 // The pango layout object created from the window, cached across exposes. 116 // The pango layout object created from the window, cached across exposes.
117 PangoLayout* layout_; 117 PangoLayout* layout_;
118 118
119 ThemeServiceGtk* theme_service_; 119 GtkThemeService* theme_service_;
120 content::NotificationRegistrar registrar_; 120 content::NotificationRegistrar registrar_;
121 121
122 // Font used for suggestions after being derived from the constructor's 122 // Font used for suggestions after being derived from the constructor's
123 // |font|. 123 // |font|.
124 gfx::Font font_; 124 gfx::Font font_;
125 125
126 // Used to cache GdkPixbufs and map them from the SkBitmaps they were created 126 // Used to cache GdkPixbufs and map them from the SkBitmaps they were created
127 // from. 127 // from.
128 typedef std::map<const SkBitmap*, gfx::Image*> ImageMap; 128 typedef std::map<const SkBitmap*, gfx::Image*> ImageMap;
129 ImageMap images_; 129 ImageMap images_;
(...skipping 19 matching lines...) Expand all
149 // erroneously ignore the next drag. 149 // erroneously ignore the next drag.
150 bool ignore_mouse_drag_; 150 bool ignore_mouse_drag_;
151 151
152 // Whether our popup is currently open / shown, or closed / hidden. 152 // Whether our popup is currently open / shown, or closed / hidden.
153 bool opened_; 153 bool opened_;
154 154
155 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewGtk); 155 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewGtk);
156 }; 156 };
157 157
158 #endif // CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ 158 #endif // CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc ('k') | chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698