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

Side by Side Diff: content/shell/shell_web_contents_view_delegate_mac.mm

Issue 11828028: [content shell] W3C SVG tests need to run in a smaller window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 11 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 #include "content/shell/shell_web_contents_view_delegate.h" 5 #include "content/shell/shell_web_contents_view_delegate.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "content/public/browser/devtools_agent_host.h" 10 #include "content/public/browser/devtools_agent_host.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 web_contents_->GetRenderViewHost()->Delete(); 238 web_contents_->GetRenderViewHost()->Delete();
239 break; 239 break;
240 case ShellContextMenuItemOpenLinkTag: { 240 case ShellContextMenuItemOpenLinkTag: {
241 ShellBrowserContext* browser_context = 241 ShellBrowserContext* browser_context =
242 static_cast<ShellContentBrowserClient*>( 242 static_cast<ShellContentBrowserClient*>(
243 GetContentClient()->browser())->browser_context(); 243 GetContentClient()->browser())->browser_context();
244 Shell::CreateNewWindow(browser_context, 244 Shell::CreateNewWindow(browser_context,
245 params_.link_url, 245 params_.link_url,
246 NULL, 246 NULL,
247 MSG_ROUTING_NONE, 247 MSG_ROUTING_NONE,
248 NULL); 248 gfx::Size());
249 break; 249 break;
250 } 250 }
251 case ShellContextMenuItemBackTag: 251 case ShellContextMenuItemBackTag:
252 web_contents_->GetController().GoToOffset(-1); 252 web_contents_->GetController().GoToOffset(-1);
253 web_contents_->Focus(); 253 web_contents_->Focus();
254 break; 254 break;
255 case ShellContextMenuItemForwardTag: 255 case ShellContextMenuItemForwardTag:
256 web_contents_->GetController().GoToOffset(1); 256 web_contents_->GetController().GoToOffset(1);
257 web_contents_->Focus(); 257 web_contents_->Focus();
258 break; 258 break;
259 case ShellContextMenuItemReloadTag: { 259 case ShellContextMenuItemReloadTag: {
260 web_contents_->GetController().Reload(false); 260 web_contents_->GetController().Reload(false);
261 web_contents_->Focus(); 261 web_contents_->Focus();
262 break; 262 break;
263 } 263 }
264 case ShellContextMenuItemInspectTag: { 264 case ShellContextMenuItemInspectTag: {
265 ShellContentBrowserClient* browser_client = 265 ShellContentBrowserClient* browser_client =
266 static_cast<ShellContentBrowserClient*>( 266 static_cast<ShellContentBrowserClient*>(
267 GetContentClient()->browser()); 267 GetContentClient()->browser());
268 ShellDevToolsDelegate* delegate = 268 ShellDevToolsDelegate* delegate =
269 browser_client->shell_browser_main_parts()->devtools_delegate(); 269 browser_client->shell_browser_main_parts()->devtools_delegate();
270 GURL url = delegate->devtools_http_handler()->GetFrontendURL( 270 GURL url = delegate->devtools_http_handler()->GetFrontendURL(
271 DevToolsAgentHost::GetFor(web_contents_->GetRenderViewHost())); 271 DevToolsAgentHost::GetFor(web_contents_->GetRenderViewHost()));
272 Shell::CreateNewWindow(web_contents_->GetBrowserContext(), 272 Shell::CreateNewWindow(web_contents_->GetBrowserContext(),
273 url, 273 url,
274 NULL, 274 NULL,
275 MSG_ROUTING_NONE, 275 MSG_ROUTING_NONE,
276 NULL); 276 gfx::Size());
277 break; 277 break;
278 } 278 }
279 } 279 }
280 } 280 }
281 281
282 WebDragDestDelegate* ShellWebContentsViewDelegate::GetDragDestDelegate() { 282 WebDragDestDelegate* ShellWebContentsViewDelegate::GetDragDestDelegate() {
283 return NULL; 283 return NULL;
284 } 284 }
285 285
286 NSObject<RenderWidgetHostViewMacDelegate>* 286 NSObject<RenderWidgetHostViewMacDelegate>*
287 ShellWebContentsViewDelegate::CreateRenderWidgetHostViewDelegate( 287 ShellWebContentsViewDelegate::CreateRenderWidgetHostViewDelegate(
288 content::RenderWidgetHost* render_widget_host) { 288 content::RenderWidgetHost* render_widget_host) {
289 return NULL; 289 return NULL;
290 } 290 }
291 291
292 } // namespace content 292 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_web_contents_view_delegate_gtk.cc ('k') | content/shell/shell_web_contents_view_delegate_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698