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

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

Issue 9447096: gtk: Rename GtkThemeService to ThemeServiceGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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) 2011 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 GtkThemeService; 27 class ThemeServiceGtk;
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 class OmniboxPopupViewGtk : public AutocompletePopupView, 35 class OmniboxPopupViewGtk : public AutocompletePopupView,
36 public content::NotificationObserver { 36 public content::NotificationObserver {
37 public: 37 public:
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 scoped_ptr<AutocompletePopupModel> model_; 96 scoped_ptr<AutocompletePopupModel> model_;
97 OmniboxView* omnibox_view_; 97 OmniboxView* omnibox_view_;
98 GtkWidget* location_bar_; 98 GtkWidget* location_bar_;
99 99
100 // Our popup window, which is the only widget used, and we paint it on our 100 // Our popup window, which is the only widget used, and we paint it on our
101 // own. This widget shouldn't be exposed outside of this class. 101 // own. This widget shouldn't be exposed outside of this class.
102 GtkWidget* window_; 102 GtkWidget* window_;
103 // The pango layout object created from the window, cached across exposes. 103 // The pango layout object created from the window, cached across exposes.
104 PangoLayout* layout_; 104 PangoLayout* layout_;
105 105
106 GtkThemeService* theme_service_; 106 ThemeServiceGtk* theme_service_;
107 content::NotificationRegistrar registrar_; 107 content::NotificationRegistrar registrar_;
108 108
109 // Font used for suggestions after being derived from the constructor's 109 // Font used for suggestions after being derived from the constructor's
110 // |font|. 110 // |font|.
111 gfx::Font font_; 111 gfx::Font font_;
112 112
113 // Used to cache GdkPixbufs and map them from the SkBitmaps they were created 113 // Used to cache GdkPixbufs and map them from the SkBitmaps they were created
114 // from. 114 // from.
115 typedef std::map<const SkBitmap*, gfx::Image*> ImageMap; 115 typedef std::map<const SkBitmap*, gfx::Image*> ImageMap;
116 ImageMap images_; 116 ImageMap images_;
(...skipping 19 matching lines...) Expand all
136 // erroneously ignore the next drag. 136 // erroneously ignore the next drag.
137 bool ignore_mouse_drag_; 137 bool ignore_mouse_drag_;
138 138
139 // Whether our popup is currently open / shown, or closed / hidden. 139 // Whether our popup is currently open / shown, or closed / hidden.
140 bool opened_; 140 bool opened_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewGtk); 142 DISALLOW_COPY_AND_ASSIGN(OmniboxPopupViewGtk);
143 }; 143 };
144 144
145 #endif // CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_POPUP_VIEW_GTK_H_ 145 #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