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

Side by Side Diff: content/shell/shell_web_contents_view_delegate_win.cc

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
« no previous file with comments | « content/shell/shell_web_contents_view_delegate_mac.mm ('k') | content/shell/shell_win.cc » ('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) 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 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/public/browser/devtools_agent_host.h" 8 #include "content/public/browser/devtools_agent_host.h"
9 #include "content/public/browser/devtools_http_handler.h" 9 #include "content/public/browser/devtools_http_handler.h"
10 #include "content/public/browser/render_process_host.h" 10 #include "content/public/browser/render_process_host.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 web_contents_->GetRenderViewHost()->Delete(); 206 web_contents_->GetRenderViewHost()->Delete();
207 break; 207 break;
208 case ShellContextMenuItemOpenLinkId: { 208 case ShellContextMenuItemOpenLinkId: {
209 ShellBrowserContext* browser_context = 209 ShellBrowserContext* browser_context =
210 static_cast<ShellContentBrowserClient*>( 210 static_cast<ShellContentBrowserClient*>(
211 GetContentClient()->browser())->browser_context(); 211 GetContentClient()->browser())->browser_context();
212 Shell::CreateNewWindow(browser_context, 212 Shell::CreateNewWindow(browser_context,
213 params_.link_url, 213 params_.link_url,
214 NULL, 214 NULL,
215 MSG_ROUTING_NONE, 215 MSG_ROUTING_NONE,
216 NULL); 216 gfx::Size());
217 break; 217 break;
218 } 218 }
219 case ShellContextMenuItemBackId: 219 case ShellContextMenuItemBackId:
220 web_contents_->GetController().GoToOffset(-1); 220 web_contents_->GetController().GoToOffset(-1);
221 web_contents_->Focus(); 221 web_contents_->Focus();
222 break; 222 break;
223 case ShellContextMenuItemForwardId: 223 case ShellContextMenuItemForwardId:
224 web_contents_->GetController().GoToOffset(1); 224 web_contents_->GetController().GoToOffset(1);
225 web_contents_->Focus(); 225 web_contents_->Focus();
226 break; 226 break;
227 case ShellContextMenuItemReloadId: 227 case ShellContextMenuItemReloadId:
228 web_contents_->GetController().Reload(false); 228 web_contents_->GetController().Reload(false);
229 web_contents_->Focus(); 229 web_contents_->Focus();
230 break; 230 break;
231 case ShellContextMenuItemInspectId: { 231 case ShellContextMenuItemInspectId: {
232 ShellContentBrowserClient* browser_client = 232 ShellContentBrowserClient* browser_client =
233 static_cast<ShellContentBrowserClient*>( 233 static_cast<ShellContentBrowserClient*>(
234 GetContentClient()->browser()); 234 GetContentClient()->browser());
235 ShellDevToolsDelegate* delegate = 235 ShellDevToolsDelegate* delegate =
236 browser_client->shell_browser_main_parts()->devtools_delegate(); 236 browser_client->shell_browser_main_parts()->devtools_delegate();
237 GURL url = delegate->devtools_http_handler()->GetFrontendURL( 237 GURL url = delegate->devtools_http_handler()->GetFrontendURL(
238 DevToolsAgentHost::GetFor(web_contents_->GetRenderViewHost())); 238 DevToolsAgentHost::GetFor(web_contents_->GetRenderViewHost()));
239 Shell::CreateNewWindow(web_contents_->GetBrowserContext(), 239 Shell::CreateNewWindow(web_contents_->GetBrowserContext(),
240 url, 240 url,
241 NULL, 241 NULL,
242 MSG_ROUTING_NONE, 242 MSG_ROUTING_NONE,
243 NULL); 243 gfx::Size());
244 break; 244 break;
245 } 245 }
246 } 246 }
247 } 247 }
248 248
249 WebDragDestDelegate* ShellWebContentsViewDelegate::GetDragDestDelegate() { 249 WebDragDestDelegate* ShellWebContentsViewDelegate::GetDragDestDelegate() {
250 return NULL; 250 return NULL;
251 } 251 }
252 252
253 void ShellWebContentsViewDelegate::StoreFocus() { 253 void ShellWebContentsViewDelegate::StoreFocus() {
254 } 254 }
255 255
256 void ShellWebContentsViewDelegate::RestoreFocus() { 256 void ShellWebContentsViewDelegate::RestoreFocus() {
257 } 257 }
258 258
259 bool ShellWebContentsViewDelegate::Focus() { 259 bool ShellWebContentsViewDelegate::Focus() {
260 return false; 260 return false;
261 } 261 }
262 262
263 void ShellWebContentsViewDelegate::TakeFocus(bool reverse) { 263 void ShellWebContentsViewDelegate::TakeFocus(bool reverse) {
264 } 264 }
265 265
266 void ShellWebContentsViewDelegate::SizeChanged(const gfx::Size& size) { 266 void ShellWebContentsViewDelegate::SizeChanged(const gfx::Size& size) {
267 } 267 }
268 268
269 } // namespace content 269 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_web_contents_view_delegate_mac.mm ('k') | content/shell/shell_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698