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

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

Issue 8614003: Add OVERRIDE to chrome/browser/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 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_MAC_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(__OBJC__) 9 #if defined(__OBJC__)
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void CancelDragAndCloseTab() OVERRIDE; 81 virtual void CancelDragAndCloseTab() OVERRIDE;
82 virtual bool IsEventTracking() const OVERRIDE; 82 virtual bool IsEventTracking() const OVERRIDE;
83 virtual void CloseTabAfterEventTracking() OVERRIDE; 83 virtual void CloseTabAfterEventTracking() OVERRIDE;
84 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE; 84 virtual void GetViewBounds(gfx::Rect* out) const OVERRIDE;
85 virtual void InstallOverlayView(gfx::NativeView view) OVERRIDE; 85 virtual void InstallOverlayView(gfx::NativeView view) OVERRIDE;
86 virtual void RemoveOverlayView() OVERRIDE; 86 virtual void RemoveOverlayView() OVERRIDE;
87 87
88 // Backend implementation of RenderViewHostDelegate::View. 88 // Backend implementation of RenderViewHostDelegate::View.
89 virtual void CreateNewWindow( 89 virtual void CreateNewWindow(
90 int route_id, 90 int route_id,
91 const ViewHostMsg_CreateWindow_Params& params); 91 const ViewHostMsg_CreateWindow_Params& params) OVERRIDE;
92 virtual void CreateNewWidget(int route_id, WebKit::WebPopupType popup_type); 92 virtual void CreateNewWidget(int route_id,
93 virtual void CreateNewFullscreenWidget(int route_id); 93 WebKit::WebPopupType popup_type) OVERRIDE;
94 virtual void CreateNewFullscreenWidget(int route_id) OVERRIDE;
94 virtual void ShowCreatedWindow(int route_id, 95 virtual void ShowCreatedWindow(int route_id,
95 WindowOpenDisposition disposition, 96 WindowOpenDisposition disposition,
96 const gfx::Rect& initial_pos, 97 const gfx::Rect& initial_pos,
97 bool user_gesture); 98 bool user_gesture) OVERRIDE;
98 virtual void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos); 99 virtual void ShowCreatedWidget(int route_id,
99 virtual void ShowCreatedFullscreenWidget(int route_id); 100 const gfx::Rect& initial_pos) OVERRIDE;
100 virtual void ShowContextMenu(const ContextMenuParams& params); 101 virtual void ShowCreatedFullscreenWidget(int route_id) OVERRIDE;
102 virtual void ShowContextMenu(const ContextMenuParams& params) OVERRIDE;
101 virtual void ShowPopupMenu(const gfx::Rect& bounds, 103 virtual void ShowPopupMenu(const gfx::Rect& bounds,
102 int item_height, 104 int item_height,
103 double item_font_size, 105 double item_font_size,
104 int selected_item, 106 int selected_item,
105 const std::vector<WebMenuItem>& items, 107 const std::vector<WebMenuItem>& items,
106 bool right_aligned); 108 bool right_aligned) OVERRIDE;
107 virtual void StartDragging(const WebDropData& drop_data, 109 virtual void StartDragging(const WebDropData& drop_data,
108 WebKit::WebDragOperationsMask allowed_operations, 110 WebKit::WebDragOperationsMask allowed_operations,
109 const SkBitmap& image, 111 const SkBitmap& image,
110 const gfx::Point& image_offset); 112 const gfx::Point& image_offset) OVERRIDE;
111 virtual void UpdateDragCursor(WebKit::WebDragOperation operation); 113 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) OVERRIDE;
112 virtual void GotFocus(); 114 virtual void GotFocus() OVERRIDE;
113 virtual void TakeFocus(bool reverse); 115 virtual void TakeFocus(bool reverse) OVERRIDE;
114 116
115 // A helper method for closing the tab in the 117 // A helper method for closing the tab in the
116 // CloseTabAfterEventTracking() implementation. 118 // CloseTabAfterEventTracking() implementation.
117 void CloseTab(); 119 void CloseTab();
118 120
119 TabContents* tab_contents() { return tab_contents_; } 121 TabContents* tab_contents() { return tab_contents_; }
120 int preferred_width() const { return preferred_width_; } 122 int preferred_width() const { return preferred_width_; }
121 123
122 private: 124 private:
123 // The TabContents whose contents we display. 125 // The TabContents whose contents we display.
(...skipping 26 matching lines...) Expand all
150 152
151 // Functions that may be accessed from non-Objective-C C/C++ code. 153 // Functions that may be accessed from non-Objective-C C/C++ code.
152 class TabContents; 154 class TabContents;
153 class TabContentsView; 155 class TabContentsView;
154 156
155 namespace tab_contents_view_mac { 157 namespace tab_contents_view_mac {
156 TabContentsView* CreateTabContentsView(TabContents* tab_contents); 158 TabContentsView* CreateTabContentsView(TabContents* tab_contents);
157 } 159 }
158 160
159 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_ 161 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu_mac.h ('k') | chrome/browser/tab_contents/thumbnail_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698