| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 WebKit::WebDragOperationsMask ops_allowed); | 53 WebKit::WebDragOperationsMask ops_allowed); |
| 54 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); | 54 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); |
| 55 virtual void GotFocus(); | 55 virtual void GotFocus(); |
| 56 virtual void TakeFocus(bool reverse); | 56 virtual void TakeFocus(bool reverse); |
| 57 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 57 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 // Signal handlers ----------------------------------------------------------- | 60 // Signal handlers ----------------------------------------------------------- |
| 61 | 61 |
| 62 // Overridden from views::WidgetGtk: | 62 // Overridden from views::WidgetGtk: |
| 63 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event); | 63 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event); |
| 64 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); | 64 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); |
| 65 virtual void OnPaint(GtkWidget* widget, GdkEventExpose* event); | 65 virtual void OnPaint(GtkWidget* widget, GdkEventExpose* event); |
| 66 | 66 |
| 67 // Handles notifying the TabContents and other operations when the window was | 67 // Handles notifying the TabContents and other operations when the window was |
| (...skipping 30 matching lines...) Expand all Loading... |
| 98 // GTK. | 98 // GTK. |
| 99 scoped_ptr<WebDragDestGtk> drag_dest_; | 99 scoped_ptr<WebDragDestGtk> drag_dest_; |
| 100 | 100 |
| 101 // Current size. See comment in WidgetGtk as to why this is cached. | 101 // Current size. See comment in WidgetGtk as to why this is cached. |
| 102 gfx::Size size_; | 102 gfx::Size size_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 104 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 107 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
| OLD | NEW |