OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
7 | 7 |
8 #include "base/gfx/size.h" | 8 #include "base/gfx/size.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "chrome/browser/tab_contents/tab_contents_view.h" | 10 #include "chrome/browser/tab_contents/tab_contents_view.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual void SetPageTitle(const std::wstring& title); | 42 virtual void SetPageTitle(const std::wstring& title); |
43 virtual void OnTabCrashed(); | 43 virtual void OnTabCrashed(); |
44 virtual void SizeContents(const gfx::Size& size); | 44 virtual void SizeContents(const gfx::Size& size); |
45 virtual void Focus(); | 45 virtual void Focus(); |
46 virtual void SetInitialFocus(); | 46 virtual void SetInitialFocus(); |
47 virtual void StoreFocus(); | 47 virtual void StoreFocus(); |
48 virtual void RestoreFocus(); | 48 virtual void RestoreFocus(); |
49 | 49 |
50 // Backend implementation of RenderViewHostDelegate::View. | 50 // Backend implementation of RenderViewHostDelegate::View. |
51 virtual void ShowContextMenu(const ContextMenuParams& params); | 51 virtual void ShowContextMenu(const ContextMenuParams& params); |
52 virtual void StartDragging(const WebDropData& drop_data); | 52 virtual void StartDragging(const WebDropData& drop_data, |
53 virtual void UpdateDragCursor(bool is_drop_target); | 53 WebKit::WebDragOperationsMask ops_allowed); |
| 54 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
54 virtual void GotFocus(); | 55 virtual void GotFocus(); |
55 virtual void TakeFocus(bool reverse); | 56 virtual void TakeFocus(bool reverse); |
56 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 57 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
57 | 58 |
58 private: | 59 private: |
59 // Signal handlers ----------------------------------------------------------- | 60 // Signal handlers ----------------------------------------------------------- |
60 | 61 |
61 // Overridden from views::WidgetGtk: | 62 // Overridden from views::WidgetGtk: |
62 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event); | 63 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event); |
63 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); | 64 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); |
(...skipping 22 matching lines...) Expand all Loading... |
86 // Handles drags from this TabContentsView. | 87 // Handles drags from this TabContentsView. |
87 scoped_ptr<TabContentsDragSource> drag_source_; | 88 scoped_ptr<TabContentsDragSource> drag_source_; |
88 | 89 |
89 // The event for the last mouse down we handled. We need this for drags. | 90 // The event for the last mouse down we handled. We need this for drags. |
90 GdkEventButton last_mouse_down_; | 91 GdkEventButton last_mouse_down_; |
91 | 92 |
92 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 93 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
93 }; | 94 }; |
94 | 95 |
95 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 96 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |