| 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_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_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 <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "chrome/browser/tab_contents/tab_contents_view.h" | |
| 15 #include "chrome/browser/ui/gtk/focus_store_gtk.h" | 14 #include "chrome/browser/ui/gtk/focus_store_gtk.h" |
| 16 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" | 15 #include "chrome/browser/ui/gtk/owned_widget_gtk.h" |
| 17 #include "chrome/common/notification_observer.h" | 16 #include "chrome/common/notification_observer.h" |
| 18 #include "chrome/common/notification_registrar.h" | 17 #include "chrome/common/notification_registrar.h" |
| 18 #include "content/browser/tab_contents/tab_contents_view.h" |
| 19 #include "ui/base/gtk/gtk_signal.h" | 19 #include "ui/base/gtk/gtk_signal.h" |
| 20 | 20 |
| 21 class ConstrainedWindowGtk; | 21 class ConstrainedWindowGtk; |
| 22 class RenderViewContextMenuGtk; | 22 class RenderViewContextMenuGtk; |
| 23 class SadTabGtk; | 23 class SadTabGtk; |
| 24 class TabContentsDragSource; | 24 class TabContentsDragSource; |
| 25 class WebDragDestGtk; | 25 class WebDragDestGtk; |
| 26 | 26 |
| 27 class TabContentsViewGtk : public TabContentsView, | 27 class TabContentsViewGtk : public TabContentsView, |
| 28 public NotificationObserver { | 28 public NotificationObserver { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 scoped_ptr<TabContentsDragSource> drag_source_; | 147 scoped_ptr<TabContentsDragSource> drag_source_; |
| 148 | 148 |
| 149 // The size we want the tab contents view to be. We keep this in a separate | 149 // The size we want the tab contents view to be. We keep this in a separate |
| 150 // variable because resizing in GTK+ is async. | 150 // variable because resizing in GTK+ is async. |
| 151 gfx::Size requested_size_; | 151 gfx::Size requested_size_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 153 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 156 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
| OLD | NEW |