| 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 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 virtual void StartDragging(const WebDropData& drop_data, | 73 virtual void StartDragging(const WebDropData& drop_data, |
| 74 WebKit::WebDragOperationsMask allowed_ops, | 74 WebKit::WebDragOperationsMask allowed_ops, |
| 75 const SkBitmap& image, | 75 const SkBitmap& image, |
| 76 const gfx::Point& image_offset); | 76 const gfx::Point& image_offset); |
| 77 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 77 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
| 78 virtual void GotFocus(); | 78 virtual void GotFocus(); |
| 79 virtual void TakeFocus(bool reverse); | 79 virtual void TakeFocus(bool reverse); |
| 80 | 80 |
| 81 // NotificationObserver implementation --------------------------------------- | 81 // NotificationObserver implementation --------------------------------------- |
| 82 | 82 |
| 83 virtual void Observe(NotificationType type, | 83 virtual void Observe(int type, |
| 84 const NotificationSource& source, | 84 const NotificationSource& source, |
| 85 const NotificationDetails& details); | 85 const NotificationDetails& details); |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 // Insert the given widget into the content area. Should only be used for | 88 // Insert the given widget into the content area. Should only be used for |
| 89 // web pages and the like (including interstitials and sad tab). Note that | 89 // web pages and the like (including interstitials and sad tab). Note that |
| 90 // this will be perfectly happy to insert overlapping render views, so care | 90 // this will be perfectly happy to insert overlapping render views, so care |
| 91 // should be taken that the correct one is hidden/shown. | 91 // should be taken that the correct one is hidden/shown. |
| 92 void InsertIntoContentArea(GtkWidget* widget); | 92 void InsertIntoContentArea(GtkWidget* widget); |
| 93 | 93 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 scoped_ptr<TabContentsDragSource> drag_source_; | 139 scoped_ptr<TabContentsDragSource> drag_source_; |
| 140 | 140 |
| 141 // The size we want the tab contents view to be. We keep this in a separate | 141 // The size we want the tab contents view to be. We keep this in a separate |
| 142 // variable because resizing in GTK+ is async. | 142 // variable because resizing in GTK+ is async. |
| 143 gfx::Size requested_size_; | 143 gfx::Size requested_size_; |
| 144 | 144 |
| 145 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 145 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 148 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
| OLD | NEW |