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

Side by Side Diff: chrome/browser/ui/views/external_tab_container_win.h

Issue 10837112: Add WebContents* to some more WebContentsDelegate methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 const content::WebContents* source) const OVERRIDE; 123 const content::WebContents* source) const OVERRIDE;
124 virtual void UpdateTargetURL(content::WebContents* source, int32 page_id, 124 virtual void UpdateTargetURL(content::WebContents* source, int32 page_id,
125 const GURL& url) OVERRIDE; 125 const GURL& url) OVERRIDE;
126 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; 126 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE;
127 virtual gfx::NativeWindow GetFrameNativeWindow() OVERRIDE; 127 virtual gfx::NativeWindow GetFrameNativeWindow() OVERRIDE;
128 virtual void WebContentsCreated(content::WebContents* source_contents, 128 virtual void WebContentsCreated(content::WebContents* source_contents,
129 int64 source_frame_id, 129 int64 source_frame_id,
130 const GURL& target_url, 130 const GURL& target_url,
131 content::WebContents* new_contents) OVERRIDE; 131 content::WebContents* new_contents) OVERRIDE;
132 virtual bool PreHandleKeyboardEvent( 132 virtual bool PreHandleKeyboardEvent(
133 content::WebContents* source,
133 const content::NativeWebKeyboardEvent& event, 134 const content::NativeWebKeyboardEvent& event,
134 bool* is_keyboard_shortcut) OVERRIDE; 135 bool* is_keyboard_shortcut) OVERRIDE;
135 virtual void HandleKeyboardEvent( 136 virtual void HandleKeyboardEvent(
137 content::WebContents* source,
136 const content::NativeWebKeyboardEvent& event) OVERRIDE; 138 const content::NativeWebKeyboardEvent& event) OVERRIDE;
137 virtual bool TakeFocus(bool reverse) OVERRIDE; 139 virtual bool TakeFocus(content::WebContents* source, bool reverse) OVERRIDE;
138 virtual bool CanDownload(content::RenderViewHost* render_view_host, 140 virtual bool CanDownload(content::RenderViewHost* render_view_host,
139 int request_id, 141 int request_id,
140 const std::string& request_method) OVERRIDE; 142 const std::string& request_method) OVERRIDE;
141 virtual bool OnGoToEntryOffset(int offset) OVERRIDE; 143 virtual bool OnGoToEntryOffset(int offset) OVERRIDE;
142 virtual bool HandleContextMenu( 144 virtual bool HandleContextMenu(
143 const content::ContextMenuParams& params) OVERRIDE; 145 const content::ContextMenuParams& params) OVERRIDE;
144 virtual bool ExecuteContextMenuCommand(int command) OVERRIDE; 146 virtual bool ExecuteContextMenuCommand(int command) OVERRIDE;
145 virtual void BeforeUnloadFired(content::WebContents* tab, 147 virtual void BeforeUnloadFired(content::WebContents* tab,
146 bool proceed, 148 bool proceed,
147 bool* proceed_to_fire_unload) OVERRIDE; 149 bool* proceed_to_fire_unload) OVERRIDE;
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 return false; 396 return false;
395 } 397 }
396 398
397 virtual void BeforeUnloadFired(content::WebContents* tab, bool proceed, 399 virtual void BeforeUnloadFired(content::WebContents* tab, bool proceed,
398 bool* proceed_to_fire_unload) { 400 bool* proceed_to_fire_unload) {
399 NOTREACHED(); 401 NOTREACHED();
400 } 402 }
401 }; 403 };
402 404
403 #endif // CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ 405 #endif // CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698