| OLD | NEW |
| 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_CONSTRAINED_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_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/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
| 14 #include "chrome/browser/ui/constrained_window.h" | 14 #include "chrome/browser/ui/constrained_window.h" |
| 15 #include "ui/base/gtk/gtk_signal.h" | 15 #include "ui/base/gtk/gtk_signal.h" |
| 16 #include "ui/base/gtk/owned_widget_gtk.h" | 16 #include "ui/base/gtk/owned_widget_gtk.h" |
| 17 | 17 |
| 18 class TabContentsWrapper; | 18 class TabContents; |
| 19 typedef TabContents TabContentsWrapper; |
| 19 typedef struct _GdkColor GdkColor; | 20 typedef struct _GdkColor GdkColor; |
| 20 class ChromeWebContentsViewDelegateGtk; | 21 class ChromeWebContentsViewDelegateGtk; |
| 21 | 22 |
| 22 class ConstrainedWindowGtkDelegate { | 23 class ConstrainedWindowGtkDelegate { |
| 23 public: | 24 public: |
| 24 // Returns the widget that will be put in the constrained window's container. | 25 // Returns the widget that will be put in the constrained window's container. |
| 25 virtual GtkWidget* GetWidgetRoot() = 0; | 26 virtual GtkWidget* GetWidgetRoot() = 0; |
| 26 | 27 |
| 27 // Returns the widget that should get focus when ConstrainedWindow is focused. | 28 // Returns the widget that should get focus when ConstrainedWindow is focused. |
| 28 virtual GtkWidget* GetFocusWidget() = 0; | 29 virtual GtkWidget* GetFocusWidget() = 0; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 86 |
| 86 // Stores if |ShowConstrainedWindow()| has been called. | 87 // Stores if |ShowConstrainedWindow()| has been called. |
| 87 bool visible_; | 88 bool visible_; |
| 88 | 89 |
| 89 base::WeakPtrFactory<ConstrainedWindowGtk> weak_factory_; | 90 base::WeakPtrFactory<ConstrainedWindowGtk> weak_factory_; |
| 90 | 91 |
| 91 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowGtk); | 92 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowGtk); |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 #endif // CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ | 95 #endif // CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ |
| OLD | NEW |