Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: chrome/browser/tab_contents/web_contents_view_win.h

Issue 19632: Make WebContentsView portable by using the native view types. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_contents_view.h ('k') | chrome/browser/tab_contents/web_contents_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698