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

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

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 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 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/public/browser/render_process_host.h" 8 #include "content/public/browser/render_process_host.h"
9 #include "content/public/browser/render_view_host.h" 9 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/render_widget_host_view.h" 10 #include "content/public/browser/render_widget_host_view.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 web_contents_->GetRenderViewHost()->Copy(); 198 web_contents_->GetRenderViewHost()->Copy();
199 break; 199 break;
200 case ShellContextMenuItemPasteId: 200 case ShellContextMenuItemPasteId:
201 web_contents_->GetRenderViewHost()->Paste(); 201 web_contents_->GetRenderViewHost()->Paste();
202 break; 202 break;
203 case ShellContextMenuItemDeleteId: 203 case ShellContextMenuItemDeleteId:
204 web_contents_->GetRenderViewHost()->Delete(); 204 web_contents_->GetRenderViewHost()->Delete();
205 break; 205 break;
206 case ShellContextMenuItemOpenLinkId: { 206 case ShellContextMenuItemOpenLinkId: {
207 ShellBrowserContext* browser_context = 207 ShellBrowserContext* browser_context =
208 static_cast<ShellContentBrowserClient*>( 208 ShellContentBrowserClient::Get()->browser_context();
209 GetContentClient()->browser())->browser_context();
210 Shell::CreateNewWindow(browser_context, 209 Shell::CreateNewWindow(browser_context,
211 params_.link_url, 210 params_.link_url,
212 NULL, 211 NULL,
213 MSG_ROUTING_NONE, 212 MSG_ROUTING_NONE,
214 gfx::Size()); 213 gfx::Size());
215 break; 214 break;
216 } 215 }
217 case ShellContextMenuItemBackId: 216 case ShellContextMenuItemBackId:
218 web_contents_->GetController().GoToOffset(-1); 217 web_contents_->GetController().GoToOffset(-1);
219 web_contents_->GetView()->Focus(); 218 web_contents_->GetView()->Focus();
(...skipping 27 matching lines...) Expand all
247 return false; 246 return false;
248 } 247 }
249 248
250 void ShellWebContentsViewDelegate::TakeFocus(bool reverse) { 249 void ShellWebContentsViewDelegate::TakeFocus(bool reverse) {
251 } 250 }
252 251
253 void ShellWebContentsViewDelegate::SizeChanged(const gfx::Size& size) { 252 void ShellWebContentsViewDelegate::SizeChanged(const gfx::Size& size) {
254 } 253 }
255 254
256 } // namespace content 255 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_web_contents_view_delegate_mac.mm ('k') | content/shell/webkit_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698