OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_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/web_contents_view.h" | 10 #include "chrome/browser/tab_contents/web_contents_view.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 // because that's what was easiest when they were split. | 25 // because that's what was easiest when they were split. |
26 explicit WebContentsViewWin(WebContents* web_contents); | 26 explicit WebContentsViewWin(WebContents* web_contents); |
27 virtual ~WebContentsViewWin(); | 27 virtual ~WebContentsViewWin(); |
28 | 28 |
29 // WebContentsView implementation -------------------------------------------- | 29 // WebContentsView implementation -------------------------------------------- |
30 | 30 |
31 virtual WebContents* GetWebContents(); | 31 virtual WebContents* GetWebContents(); |
32 virtual void CreateView(); | 32 virtual void CreateView(); |
33 virtual RenderWidgetHostViewWin* CreateViewForWidget( | 33 virtual RenderWidgetHostViewWin* CreateViewForWidget( |
34 RenderWidgetHost* render_widget_host); | 34 RenderWidgetHost* render_widget_host); |
35 virtual HWND GetContainerHWND() const; | 35 virtual gfx::NativeView GetNativeView() const; |
36 virtual HWND GetContentHWND() const; | 36 virtual gfx::NativeView GetContentNativeView() const; |
37 virtual void GetContainerBounds(gfx::Rect* out) const; | 37 virtual void GetContainerBounds(gfx::Rect* out) const; |
38 virtual void OnContentsDestroy(); | 38 virtual void OnContentsDestroy(); |
39 virtual void SetPageTitle(const std::wstring& title); | 39 virtual void SetPageTitle(const std::wstring& title); |
40 virtual void Invalidate(); | 40 virtual void Invalidate(); |
41 virtual void SizeContents(const gfx::Size& size); | 41 virtual void SizeContents(const gfx::Size& size); |
42 virtual void FindInPage(const Browser& browser, | 42 virtual void FindInPage(const Browser& browser, |
43 bool find_next, bool forward_direction); | 43 bool find_next, bool forward_direction); |
44 virtual void HideFindBar(bool end_session); | 44 virtual void HideFindBar(bool end_session); |
45 virtual void ReparentFindWindow(Browser* new_browser) const; | 45 virtual void ReparentFindWindow(Browser* new_browser) const; |
46 virtual bool GetFindBarWindowInfo(gfx::Point* position, | 46 virtual bool GetFindBarWindowInfo(gfx::Point* position, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // visible. | 119 // visible. |
120 scoped_ptr<SadTabView> sad_tab_; | 120 scoped_ptr<SadTabView> sad_tab_; |
121 | 121 |
122 // Whether to ignore the next CHAR keyboard event. | 122 // Whether to ignore the next CHAR keyboard event. |
123 bool ignore_next_char_event_; | 123 bool ignore_next_char_event_; |
124 | 124 |
125 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); | 125 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); |
126 }; | 126 }; |
127 | 127 |
128 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ | 128 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ |
OLD | NEW |