| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/ui/find_bar/find_bar.h" | 13 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 14 #include "chrome/browser/ui/gtk/focus_store_gtk.h" | 14 #include "chrome/browser/ui/gtk/focus_store_gtk.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/gtk_signal.h" | 18 #include "ui/base/gtk/gtk_signal.h" |
| 19 #include "ui/base/gtk/owned_widget_gtk.h" | 19 #include "ui/base/gtk/owned_widget_gtk.h" |
| 20 #include "ui/gfx/point.h" | 20 #include "ui/gfx/point.h" |
| 21 | 21 |
| 22 class Browser; | 22 class Browser; |
| 23 class BrowserWindowGtk; | 23 class BrowserWindowGtk; |
| 24 class CustomDrawButton; | 24 class CustomDrawButton; |
| 25 class FindBarController; | 25 class FindBarController; |
| 26 class GtkThemeService; | 26 class GtkThemeService; |
| 27 class NineBox; | 27 class NineBox; |
| 28 class SlideAnimatorGtk; | 28 class SlideAnimatorGtk; |
| 29 class TabContentsContainerGtk; | |
| 30 | 29 |
| 31 typedef struct _GtkFloatingContainer GtkFloatingContainer; | 30 typedef struct _GtkFloatingContainer GtkFloatingContainer; |
| 32 | 31 |
| 33 // Currently this class contains both a model and a view. We may want to | 32 // 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. | 33 // eventually pull out the model specific bits and share with Windows. |
| 35 class FindBarGtk : public FindBar, | 34 class FindBarGtk : public FindBar, |
| 36 public FindBarTesting, | 35 public FindBarTesting, |
| 37 public content::NotificationObserver { | 36 public content::NotificationObserver { |
| 38 public: | 37 public: |
| 39 explicit FindBarGtk(BrowserWindowGtk* window); | 38 explicit FindBarGtk(BrowserWindowGtk* window); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // The selection rect we are currently showing. We cache it to avoid covering | 232 // The selection rect we are currently showing. We cache it to avoid covering |
| 234 // it up. | 233 // it up. |
| 235 gfx::Rect selection_rect_; | 234 gfx::Rect selection_rect_; |
| 236 | 235 |
| 237 content::NotificationRegistrar registrar_; | 236 content::NotificationRegistrar registrar_; |
| 238 | 237 |
| 239 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); | 238 DISALLOW_COPY_AND_ASSIGN(FindBarGtk); |
| 240 }; | 239 }; |
| 241 | 240 |
| 242 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ | 241 #endif // CHROME_BROWSER_UI_GTK_FIND_BAR_GTK_H_ |
| OLD | NEW |