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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/tab_contents/render_view_context_menu.h" 5 #include "chrome/browser/tab_contents/render_view_context_menu.h"
6 6
7 #include "app/clipboard/clipboard.h" 7 #include "app/clipboard/clipboard.h"
8 #include "app/clipboard/scoped_clipboard_writer.h" 8 #include "app/clipboard/scoped_clipboard_writer.h"
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 15 matching lines...) Expand all
26 #include "chrome/browser/spellchecker.h" 26 #include "chrome/browser/spellchecker.h"
27 #include "chrome/browser/spellchecker_platform_engine.h" 27 #include "chrome/browser/spellchecker_platform_engine.h"
28 #include "chrome/browser/tab_contents/navigation_entry.h" 28 #include "chrome/browser/tab_contents/navigation_entry.h"
29 #include "chrome/browser/tab_contents/tab_contents.h" 29 #include "chrome/browser/tab_contents/tab_contents.h"
30 #include "chrome/common/chrome_switches.h" 30 #include "chrome/common/chrome_switches.h"
31 #include "chrome/common/platform_util.h" 31 #include "chrome/common/platform_util.h"
32 #include "chrome/common/pref_service.h" 32 #include "chrome/common/pref_service.h"
33 #include "chrome/common/url_constants.h" 33 #include "chrome/common/url_constants.h"
34 #include "grit/generated_resources.h" 34 #include "grit/generated_resources.h"
35 #include "net/base/escape.h" 35 #include "net/base/escape.h"
36 #include "webkit/api/public/WebMediaPlayerAction.h" 36 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h"
37 #include "webkit/api/public/WebContextMenuData.h" 37 #include "third_party/WebKit/WebKit/chromium/public/WebContextMenuData.h"
38 38
39 using WebKit::WebContextMenuData; 39 using WebKit::WebContextMenuData;
40 using WebKit::WebMediaPlayerAction; 40 using WebKit::WebMediaPlayerAction;
41 41
42 RenderViewContextMenu::RenderViewContextMenu( 42 RenderViewContextMenu::RenderViewContextMenu(
43 TabContents* tab_contents, 43 TabContents* tab_contents,
44 const ContextMenuParams& params) 44 const ContextMenuParams& params)
45 : params_(params), 45 : params_(params),
46 source_tab_contents_(tab_contents), 46 source_tab_contents_(tab_contents),
47 profile_(tab_contents->profile()) { 47 profile_(tab_contents->profile()) {
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), 823 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages),
824 g_browser_process->clipboard()); 824 g_browser_process->clipboard());
825 } 825 }
826 826
827 void RenderViewContextMenu::MediaPlayerActionAt( 827 void RenderViewContextMenu::MediaPlayerActionAt(
828 const gfx::Point& location, 828 const gfx::Point& location,
829 const WebMediaPlayerAction& action) { 829 const WebMediaPlayerAction& action) {
830 source_tab_contents_->render_view_host()->MediaPlayerActionAt( 830 source_tab_contents_->render_view_host()->MediaPlayerActionAt(
831 location, action); 831 location, action);
832 } 832 }
OLDNEW
« no previous file with comments | « chrome/browser/ssl/ssl_policy_backend.h ('k') | chrome/browser/tab_contents/web_drag_dest_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698