Chromium Code Reviews

Side by Side Diff: chrome/browser/views/tab_contents/native_tab_contents_container_win.h

Issue 114059: Refactors HWNDView, NativeViewHostGtk and NativeViewHost so that they match t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
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_WIN_H_ 5 #ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_WIN_H_
6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_WIN_H_ 6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_WIN_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/hwnd_view.h" 9 #include "views/controls/native/native_view_host.h"
10 10
11 class NativeTabContentsContainerWin : public NativeTabContentsContainer, 11 class NativeTabContentsContainerWin : public NativeTabContentsContainer,
12 public views::HWNDView { 12 public views::NativeViewHost {
13 public: 13 public:
14 explicit NativeTabContentsContainerWin(TabContentsContainer* container); 14 explicit NativeTabContentsContainerWin(TabContentsContainer* container);
15 virtual ~NativeTabContentsContainerWin(); 15 virtual ~NativeTabContentsContainerWin();
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(NativeTabContentsContainerWin); 37 DISALLOW_COPY_AND_ASSIGN(NativeTabContentsContainerWin);
38 }; 38 };
39 39
40 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_WIN_H _ 40 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_CONTAINER_WIN_H _
OLDNEW

Powered by Google App Engine