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

Side by Side Diff: chrome/browser/ui/gtk/find_bar_gtk.h

Issue 9447096: gtk: Rename GtkThemeService to ThemeServiceGtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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_FIND_BAR_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/ui/find_bar/find_bar.h" 14 #include "chrome/browser/ui/find_bar/find_bar.h"
15 #include "chrome/browser/ui/gtk/slide_animator_gtk.h" 15 #include "chrome/browser/ui/gtk/slide_animator_gtk.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 #include "ui/base/gtk/focus_store_gtk.h" 18 #include "ui/base/gtk/focus_store_gtk.h"
19 #include "ui/base/gtk/gtk_signal.h" 19 #include "ui/base/gtk/gtk_signal.h"
20 #include "ui/base/gtk/owned_widget_gtk.h" 20 #include "ui/base/gtk/owned_widget_gtk.h"
21 #include "ui/gfx/point.h" 21 #include "ui/gfx/point.h"
22 22
23 class Browser; 23 class Browser;
24 class BrowserWindowGtk; 24 class BrowserWindowGtk;
25 class CustomDrawButton; 25 class CustomDrawButton;
26 class FindBarController; 26 class FindBarController;
27 class GtkThemeService; 27 class ThemeServiceGtk;
28 class NineBox; 28 class NineBox;
29 class SlideAnimatorGtk; 29 class SlideAnimatorGtk;
30 30
31 typedef struct _GtkFloatingContainer GtkFloatingContainer; 31 typedef struct _GtkFloatingContainer GtkFloatingContainer;
32 32
33 // Currently this class contains both a model and a view. We may want to 33 // Currently this class contains both a model and a view. We may want to
34 // eventually pull out the model specific bits and share with Windows. 34 // eventually pull out the model specific bits and share with Windows.
35 class FindBarGtk : public FindBar, 35 class FindBarGtk : public FindBar,
36 public FindBarTesting, 36 public FindBarTesting,
37 public content::NotificationObserver { 37 public content::NotificationObserver {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 find_bar->AdjustTextAlignment(); 165 find_bar->AdjustTextAlignment();
166 } 166 }
167 167
168 CHROMEGTK_CALLBACK_1(FindBarGtk, gboolean, OnFocusIn, GdkEventFocus*); 168 CHROMEGTK_CALLBACK_1(FindBarGtk, gboolean, OnFocusIn, GdkEventFocus*);
169 CHROMEGTK_CALLBACK_1(FindBarGtk, gboolean, OnFocusOut, GdkEventFocus*); 169 CHROMEGTK_CALLBACK_1(FindBarGtk, gboolean, OnFocusOut, GdkEventFocus*);
170 170
171 Browser* browser_; 171 Browser* browser_;
172 BrowserWindowGtk* window_; 172 BrowserWindowGtk* window_;
173 173
174 // Provides colors and information about GTK. 174 // Provides colors and information about GTK.
175 GtkThemeService* theme_service_; 175 ThemeServiceGtk* theme_service_;
176 176
177 // The widget that animates the slide-in and -out of the findbar. 177 // The widget that animates the slide-in and -out of the findbar.
178 scoped_ptr<SlideAnimatorGtk> slide_widget_; 178 scoped_ptr<SlideAnimatorGtk> slide_widget_;
179 179
180 // A GtkAlignment that is the child of |slide_widget_|. 180 // A GtkAlignment that is the child of |slide_widget_|.
181 GtkWidget* container_; 181 GtkWidget* container_;
182 182
183 // Cached allocation of |container_|. We keep this on hand so that we can 183 // Cached allocation of |container_|. We keep this on hand so that we can
184 // reset the widget's shape when the width/height change. 184 // reset the widget's shape when the width/height change.
185 int container_width_; 185 int container_width_;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // The selection rect we are currently showing. We cache it to avoid covering 231 // The selection rect we are currently showing. We cache it to avoid covering
232 // it up. 232 // it up.
233 gfx::Rect selection_rect_; 233 gfx::Rect selection_rect_;
234 234
235 content::NotificationRegistrar registrar_; 235 content::NotificationRegistrar registrar_;
236 236
237 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); 237 DISALLOW_COPY_AND_ASSIGN(FindBarGtk);
238 }; 238 };
239 239
240 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ 240 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/extensions/extension_popup_gtk.cc ('k') | chrome/browser/ui/gtk/find_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698