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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 virtual void StoreFocus(); | 58 virtual void StoreFocus(); |
59 virtual void RestoreFocus(); | 59 virtual void RestoreFocus(); |
60 | 60 |
61 // Backend implementation of RenderViewHostDelegate::View. | 61 // Backend implementation of RenderViewHostDelegate::View. |
62 virtual void ShowContextMenu(const ContextMenuParams& params); | 62 virtual void ShowContextMenu(const ContextMenuParams& params); |
63 virtual void StartDragging(const WebDropData& drop_data, | 63 virtual void StartDragging(const WebDropData& drop_data, |
64 WebKit::WebDragOperationsMask ops_allowed); | 64 WebKit::WebDragOperationsMask ops_allowed); |
65 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 65 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
66 virtual void GotFocus(); | 66 virtual void GotFocus(); |
67 virtual void TakeFocus(bool reverse); | 67 virtual void TakeFocus(bool reverse); |
68 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | |
69 | 68 |
70 private: | 69 private: |
71 // Signal handlers ----------------------------------------------------------- | 70 // Signal handlers ----------------------------------------------------------- |
72 | 71 |
73 // Overridden from views::WidgetGtk: | 72 // Overridden from views::WidgetGtk: |
74 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event); | 73 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event); |
75 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); | 74 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); |
76 virtual void OnPaint(GtkWidget* widget, GdkEventExpose* event); | 75 virtual void OnPaint(GtkWidget* widget, GdkEventExpose* event); |
77 | 76 |
78 // Handles notifying the TabContents and other operations when the window was | 77 // Handles notifying the TabContents and other operations when the window was |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 gfx::Size size_; | 117 gfx::Size size_; |
119 | 118 |
120 // Each individual UI for constrained dialogs currently displayed. The | 119 // Each individual UI for constrained dialogs currently displayed. The |
121 // objects in this vector are owned by the TabContents, not the view. | 120 // objects in this vector are owned by the TabContents, not the view. |
122 std::vector<ConstrainedWindowGtk*> constrained_windows_; | 121 std::vector<ConstrainedWindowGtk*> constrained_windows_; |
123 | 122 |
124 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 123 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
125 }; | 124 }; |
126 | 125 |
127 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 126 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |