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

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

Issue 19677: Clean up the Windows-ness in the sizing of new views. Write a bunch of commen... (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 12 matching lines...) Expand all
23 // The corresponding WebContents is passed in the constructor, and manages our 23 // The corresponding WebContents is passed in the constructor, and manages our
24 // lifetime. This doesn't need to be the case, but is this way currently 24 // lifetime. This doesn't need to be the case, but is this way currently
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 RenderWidgetHostView* CreateViewForWidget(
34 RenderWidgetHost* render_widget_host); 34 RenderWidgetHost* render_widget_host);
35 virtual gfx::NativeView GetNativeView() const; 35 virtual gfx::NativeView GetNativeView() const;
36 virtual gfx::NativeView GetContentNativeView() const; 36 virtual gfx::NativeView GetContentNativeView() const;
37 virtual gfx::NativeView GetTopLevelNativeView() const; 37 virtual gfx::NativeView GetTopLevelNativeView() const;
38 virtual void GetContainerBounds(gfx::Rect* out) const; 38 virtual void GetContainerBounds(gfx::Rect* out) const;
39 virtual void OnContentsDestroy(); 39 virtual void OnContentsDestroy();
40 virtual void SetPageTitle(const std::wstring& title); 40 virtual void SetPageTitle(const std::wstring& title);
41 virtual void Invalidate(); 41 virtual void Invalidate();
42 virtual void SizeContents(const gfx::Size& size); 42 virtual void SizeContents(const gfx::Size& size);
43 virtual void FindInPage(const Browser& browser, 43 virtual void FindInPage(const Browser& browser,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // visible. 120 // visible.
121 scoped_ptr<SadTabView> sad_tab_; 121 scoped_ptr<SadTabView> sad_tab_;
122 122
123 // Whether to ignore the next CHAR keyboard event. 123 // Whether to ignore the next CHAR keyboard event.
124 bool ignore_next_char_event_; 124 bool ignore_next_char_event_;
125 125
126 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin); 126 DISALLOW_COPY_AND_ASSIGN(WebContentsViewWin);
127 }; 127 };
128 128
129 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_WIN_H_ 129 #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