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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 691823002: Add WebContents source to methods in WebContentsDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 #include "content/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 15 matching lines...) Expand all
26 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const { 26 bool WebContentsDelegate::IsPopupOrPanel(const WebContents* source) const {
27 return false; 27 return false;
28 } 28 }
29 29
30 bool WebContentsDelegate::CanOverscrollContent() const { return false; } 30 bool WebContentsDelegate::CanOverscrollContent() const { return false; }
31 31
32 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const { 32 gfx::Rect WebContentsDelegate::GetRootWindowResizerRect() const {
33 return gfx::Rect(); 33 return gfx::Rect();
34 } 34 }
35 35
36 bool WebContentsDelegate::ShouldSuppressDialogs() { 36 bool WebContentsDelegate::ShouldSuppressDialogs(WebContents* source) {
37 return false; 37 return false;
38 } 38 }
39 39
40 bool WebContentsDelegate::ShouldPreserveAbortedURLs(WebContents* source) { 40 bool WebContentsDelegate::ShouldPreserveAbortedURLs(WebContents* source) {
41 return false; 41 return false;
42 } 42 }
43 43
44 bool WebContentsDelegate::AddMessageToConsole(WebContents* source, 44 bool WebContentsDelegate::AddMessageToConsole(WebContents* source,
45 int32 level, 45 int32 level,
46 const base::string16& message, 46 const base::string16& message,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 WebContents* web_contents, 133 WebContents* web_contents,
134 int route_id, 134 int route_id,
135 WindowContainerType window_container_type, 135 WindowContainerType window_container_type,
136 const base::string16& frame_name, 136 const base::string16& frame_name,
137 const GURL& target_url, 137 const GURL& target_url,
138 const std::string& partition_id, 138 const std::string& partition_id,
139 SessionStorageNamespace* session_storage_namespace) { 139 SessionStorageNamespace* session_storage_namespace) {
140 return true; 140 return true;
141 } 141 }
142 142
143 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager() { 143 JavaScriptDialogManager* WebContentsDelegate::GetJavaScriptDialogManager(
144 WebContents* source) {
144 return NULL; 145 return NULL;
145 } 146 }
146 147
147 bool WebContentsDelegate::EmbedsFullscreenWidget() const { 148 bool WebContentsDelegate::EmbedsFullscreenWidget() const {
148 return false; 149 return false;
149 } 150 }
150 151
151 bool WebContentsDelegate::IsFullscreenForTabOrPending( 152 bool WebContentsDelegate::IsFullscreenForTabOrPending(
152 const WebContents* web_contents) const { 153 const WebContents* web_contents) const {
153 return false; 154 return false;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 gfx::Size WebContentsDelegate::GetSizeForNewRenderView( 210 gfx::Size WebContentsDelegate::GetSizeForNewRenderView(
210 WebContents* web_contents) const { 211 WebContents* web_contents) const {
211 return gfx::Size(); 212 return gfx::Size();
212 } 213 }
213 214
214 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) { 215 bool WebContentsDelegate::IsNeverVisible(WebContents* web_contents) {
215 return false; 216 return false;
216 } 217 }
217 218
218 } // namespace content 219 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/public/test/content_browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698