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 <gtk/gtk.h> |
| 9 |
8 #include "chrome/browser/views/tab_contents/native_tab_contents_container.h" | 10 #include "chrome/browser/views/tab_contents/native_tab_contents_container.h" |
9 #include "views/controls/native/native_view_host.h" | 11 #include "views/controls/native/native_view_host.h" |
10 | 12 |
11 class NativeTabContentsContainerGtk : public NativeTabContentsContainer, | 13 class NativeTabContentsContainerGtk : public NativeTabContentsContainer, |
12 public views::NativeViewHost { | 14 public views::NativeViewHost { |
13 public: | 15 public: |
14 explicit NativeTabContentsContainerGtk(TabContentsContainer* container); | 16 explicit NativeTabContentsContainerGtk(TabContentsContainer* container); |
15 virtual ~NativeTabContentsContainerGtk(); | 17 virtual ~NativeTabContentsContainerGtk(); |
16 | 18 |
17 // Overridden from NativeTabContentsContainer: | 19 // Overridden from NativeTabContentsContainer: |
(...skipping 10 matching lines...) Expand all Loading... |
28 virtual views::FocusTraversable* GetFocusTraversable(); | 30 virtual views::FocusTraversable* GetFocusTraversable(); |
29 virtual bool IsFocusable() const; | 31 virtual bool IsFocusable() const; |
30 virtual void Focus(); | 32 virtual void Focus(); |
31 virtual void RequestFocus(); | 33 virtual void RequestFocus(); |
32 virtual void AboutToRequestFocusFromTabTraversal(bool reverse); | 34 virtual void AboutToRequestFocusFromTabTraversal(bool reverse); |
33 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); | 35 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); |
34 | 36 |
35 private: | 37 private: |
36 TabContentsContainer* container_; | 38 TabContentsContainer* container_; |
37 | 39 |
| 40 gulong focus_callback_id_; |
| 41 |
38 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsContainerGtk); | 42 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsContainerGtk); |
39 }; | 43 }; |
40 | 44 |
41 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_GTK_H
_ | 45 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_GTK_H
_ |
OLD | NEW |