OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual void StoreFocus(); | 63 virtual void StoreFocus(); |
64 virtual void RestoreFocus(); | 64 virtual void RestoreFocus(); |
65 | 65 |
66 // Backend implementation of RenderViewHostDelegate::View. | 66 // Backend implementation of RenderViewHostDelegate::View. |
67 virtual void ShowContextMenu(const ContextMenuParams& params); | 67 virtual void ShowContextMenu(const ContextMenuParams& params); |
68 virtual void StartDragging(const WebDropData& drop_data, | 68 virtual void StartDragging(const WebDropData& drop_data, |
69 WebKit::WebDragOperationsMask allowed_ops); | 69 WebKit::WebDragOperationsMask allowed_ops); |
70 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 70 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
71 virtual void GotFocus(); | 71 virtual void GotFocus(); |
72 virtual void TakeFocus(bool reverse); | 72 virtual void TakeFocus(bool reverse); |
73 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 73 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
74 | 74 |
75 // NotificationObserver implementation --------------------------------------- | 75 // NotificationObserver implementation --------------------------------------- |
76 | 76 |
77 virtual void Observe(NotificationType type, | 77 virtual void Observe(NotificationType type, |
78 const NotificationSource& source, | 78 const NotificationSource& source, |
79 const NotificationDetails& details); | 79 const NotificationDetails& details); |
80 | 80 |
81 private: | 81 private: |
82 // Insert the given widget into the content area. Should only be used for | 82 // Insert the given widget into the content area. Should only be used for |
83 // web pages and the like (including interstitials and sad tab). Note that | 83 // web pages and the like (including interstitials and sad tab). Note that |
(...skipping 55 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 |