| 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_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_GTK_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_GTK_H_ |
| 6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_GTK_H_ | 6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_GTK_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/views/tab_contents/native_tab_contents_container.h" | 8 #include "chrome/browser/views/tab_contents/native_tab_contents_container.h" |
| 9 #include "views/controls/native_view_host_gtk.h" | 9 #include "views/controls/native_view_host_gtk.h" |
| 10 | 10 |
| 11 class NativeTabContentsContainerGtk : public NativeTabContentsContainer, | 11 class NativeTabContentsContainerGtk : public NativeTabContentsContainer, |
| 12 public views::NativeViewHostGtk { | 12 public views::NativeViewHost { |
| 13 public: | 13 public: |
| 14 explicit NativeTabContentsContainerGtk(TabContentsContainer* container); | 14 explicit NativeTabContentsContainerGtk(TabContentsContainer* container); |
| 15 virtual ~NativeTabContentsContainerGtk(); | 15 virtual ~NativeTabContentsContainerGtk(); |
| 16 | 16 |
| 17 // Overridden from NativeTabContentsContainer: | 17 // Overridden from NativeTabContentsContainer: |
| 18 virtual void AttachContents(TabContents* contents); | 18 virtual void AttachContents(TabContents* contents); |
| 19 virtual void DetachContents(TabContents* contents); | 19 virtual void DetachContents(TabContents* contents); |
| 20 virtual void SetFastResize(bool fast_resize); | 20 virtual void SetFastResize(bool fast_resize); |
| 21 virtual void RenderViewHostChanged(RenderViewHost* old_host, | 21 virtual void RenderViewHostChanged(RenderViewHost* old_host, |
| 22 RenderViewHost* new_host); | 22 RenderViewHost* new_host); |
| 23 virtual views::View* GetView(); | 23 virtual views::View* GetView(); |
| 24 | 24 |
| 25 // Overridden from views::View: | 25 // Overridden from views::View: |
| 26 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e); | 26 virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e); |
| 27 virtual views::FocusTraversable* GetFocusTraversable(); | 27 virtual views::FocusTraversable* GetFocusTraversable(); |
| 28 virtual bool IsFocusable() const; | 28 virtual bool IsFocusable() const; |
| 29 virtual void Focus(); | 29 virtual void Focus(); |
| 30 virtual void RequestFocus(); | 30 virtual void RequestFocus(); |
| 31 virtual void AboutToRequestFocusFromTabTraversal(bool reverse); | 31 virtual void AboutToRequestFocusFromTabTraversal(bool reverse); |
| 32 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); | 32 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 TabContentsContainer* container_; | 35 TabContentsContainer* container_; |
| 36 | 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsContainerGtk); | 37 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsContainerGtk); |
| 38 }; | 38 }; |
| 39 | 39 |
| 40 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_GTK_H
_ | 40 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_GTK_H
_ |
| OLD | NEW |