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

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

Issue 6955010: Remove the Remoting Host component from Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove an errant include. Created 9 years, 7 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 5 #include <algorithm>
6 #include <set> 6 #include <set>
7 7
8 #include "chrome/browser/tab_contents/render_view_context_menu.h" 8 #include "chrome/browser/tab_contents/render_view_context_menu.h"
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // static 169 // static
170 bool RenderViewContextMenu::IsDevToolsURL(const GURL& url) { 170 bool RenderViewContextMenu::IsDevToolsURL(const GURL& url) {
171 return url.SchemeIs(chrome::kChromeDevToolsScheme) && 171 return url.SchemeIs(chrome::kChromeDevToolsScheme) &&
172 url.host() == chrome::kChromeUIDevToolsHost; 172 url.host() == chrome::kChromeUIDevToolsHost;
173 } 173 }
174 174
175 // static 175 // static
176 bool RenderViewContextMenu::IsInternalResourcesURL(const GURL& url) { 176 bool RenderViewContextMenu::IsInternalResourcesURL(const GURL& url) {
177 if (!url.SchemeIs(chrome::kChromeUIScheme)) 177 if (!url.SchemeIs(chrome::kChromeUIScheme))
178 return false; 178 return false;
179 return url.host() == chrome::kChromeUISyncResourcesHost || 179 return url.host() == chrome::kChromeUISyncResourcesHost;
180 url.host() == chrome::kChromeUIRemotingResourcesHost;
181 } 180 }
182 181
183 static const int kSpellcheckRadioGroup = 1; 182 static const int kSpellcheckRadioGroup = 1;
184 183
185 RenderViewContextMenu::RenderViewContextMenu( 184 RenderViewContextMenu::RenderViewContextMenu(
186 TabContents* tab_contents, 185 TabContents* tab_contents,
187 const ContextMenuParams& params) 186 const ContextMenuParams& params)
188 : params_(params), 187 : params_(params),
189 source_tab_contents_(tab_contents), 188 source_tab_contents_(tab_contents),
190 profile_(tab_contents->profile()), 189 profile_(tab_contents->profile()),
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), 1614 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages),
1616 g_browser_process->clipboard()); 1615 g_browser_process->clipboard());
1617 } 1616 }
1618 1617
1619 void RenderViewContextMenu::MediaPlayerActionAt( 1618 void RenderViewContextMenu::MediaPlayerActionAt(
1620 const gfx::Point& location, 1619 const gfx::Point& location,
1621 const WebMediaPlayerAction& action) { 1620 const WebMediaPlayerAction& action) {
1622 source_tab_contents_->render_view_host()->MediaPlayerActionAt( 1621 source_tab_contents_->render_view_host()->MediaPlayerActionAt(
1623 location, action); 1622 location, action);
1624 } 1623 }
OLDNEW
« no previous file with comments | « chrome/browser/service/service_process_control_browsertest.cc ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698