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

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

Issue 7569022: Make TabContentsView implementations use OVERRIDE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/tab_contents/tab_contents_view_mac.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TAB_CONTENTS_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 27 matching lines...) Expand all
38 // TabContentsViewGtk to position the dialogs. 38 // TabContentsViewGtk to position the dialogs.
39 void AttachConstrainedWindow(ConstrainedWindowGtk* constrained_window); 39 void AttachConstrainedWindow(ConstrainedWindowGtk* constrained_window);
40 void RemoveConstrainedWindow(ConstrainedWindowGtk* constrained_window); 40 void RemoveConstrainedWindow(ConstrainedWindowGtk* constrained_window);
41 41
42 // Override the stored focus widget. This call only makes sense when the 42 // Override the stored focus widget. This call only makes sense when the
43 // tab contents is not focused. 43 // tab contents is not focused.
44 void SetFocusedWidget(GtkWidget* widget); 44 void SetFocusedWidget(GtkWidget* widget);
45 45
46 // TabContentsView implementation -------------------------------------------- 46 // TabContentsView implementation --------------------------------------------
47 47
48 virtual void CreateView(const gfx::Size& initial_size); 48 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE;
49 virtual RenderWidgetHostView* CreateViewForWidget( 49 virtual RenderWidgetHostView* CreateViewForWidget(
50 RenderWidgetHost* render_widget_host); 50 RenderWidgetHost* render_widget_host) OVERRIDE;
51 51
52 virtual gfx::NativeView GetNativeView() const; 52 virtual gfx::NativeView GetNativeView() const OVERRIDE;
53 virtual gfx::NativeView GetContentNativeView() const; 53 virtual gfx::NativeView GetContentNativeView() const OVERRIDE;
54 virtual gfx::NativeWindow GetTopLevelNativeWindow() const; 54 virtual gfx::NativeWindow GetTopLevelNativeWindow() const OVERRIDE;
55 virtual void GetContainerBounds(gfx::Rect* out) const; 55 virtual void GetContainerBounds(gfx::Rect* out) const OVERRIDE;
56 virtual void SetPageTitle(const std::wstring& title); 56 virtual void SetPageTitle(const std::wstring& title) OVERRIDE;
57 virtual void OnTabCrashed(base::TerminationStatus status, 57 virtual void OnTabCrashed(base::TerminationStatus status,
58 int error_code); 58 int error_code) OVERRIDE;
59 virtual void SizeContents(const gfx::Size& size); 59 virtual void SizeContents(const gfx::Size& size) OVERRIDE;
60 virtual void RenderViewCreated(RenderViewHost* host); 60 virtual void RenderViewCreated(RenderViewHost* host) OVERRIDE;
61 virtual void Focus(); 61 virtual void Focus() OVERRIDE;
62 virtual void SetInitialFocus(); 62 virtual void SetInitialFocus() OVERRIDE;
63 virtual void StoreFocus(); 63 virtual void StoreFocus() OVERRIDE;
64 virtual void RestoreFocus(); 64 virtual void RestoreFocus() OVERRIDE;
65 virtual void UpdatePreferredSize(const gfx::Size& pref_size); 65 virtual void UpdatePreferredSize(const gfx::Size& pref_size) OVERRIDE;
66 virtual bool IsDoingDrag() const; 66 virtual bool IsDoingDrag() const OVERRIDE;
67 virtual void CancelDragAndCloseTab(); 67 virtual void CancelDragAndCloseTab() OVERRIDE;
68 virtual bool IsEventTracking() const; 68 virtual bool IsEventTracking() const OVERRIDE;
69 virtual void CloseTabAfterEventTracking(); 69 virtual void CloseTabAfterEventTracking() OVERRIDE;
70 virtual void GetViewBounds(gfx::Rect* out) const; 70 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE;
71 71
72 // Backend implementation of RenderViewHostDelegate::View. 72 // Backend implementation of RenderViewHostDelegate::View.
73 virtual void CreateNewWindow( 73 virtual void CreateNewWindow(
74 int route_id, 74 int route_id,
75 const ViewHostMsg_CreateWindow_Params& params); 75 const ViewHostMsg_CreateWindow_Params& params);
76 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); 76 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type);
77 virtual void CreateNewFullscreenWidget(int route_id); 77 virtual void CreateNewFullscreenWidget(int route_id);
78 virtual void ShowCreatedWindow(int route_id, 78 virtual void ShowCreatedWindow(int route_id,
79 WindowOpenDisposition disposition, 79 WindowOpenDisposition disposition,
80 const gfx::Rect& initial_pos, 80 const gfx::Rect& initial_pos,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 scoped_ptr<TabContentsDragSource> drag_source_; 164 scoped_ptr<TabContentsDragSource> drag_source_;
165 165
166 // The size we want the tab contents view to be. We keep this in a separate 166 // The size we want the tab contents view to be. We keep this in a separate
167 // variable because resizing in GTK+ is async. 167 // variable because resizing in GTK+ is async.
168 gfx::Size requested_size_; 168 gfx::Size requested_size_;
169 169
170 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); 170 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk);
171 }; 171 };
172 172
173 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ 173 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tab_contents/tab_contents_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698