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

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

Issue 168953002: Cleanup: Move kChromeDevToolsScheme constant into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 base::ReplaceChars(*text, ampersand, base::ASCIIToUTF16("&&"), text); 379 base::ReplaceChars(*text, ampersand, base::ASCIIToUTF16("&&"), text);
380 } 380 }
381 381
382 } // namespace 382 } // namespace
383 383
384 // static 384 // static
385 const size_t RenderViewContextMenu::kMaxSelectionTextLength = 50; 385 const size_t RenderViewContextMenu::kMaxSelectionTextLength = 50;
386 386
387 // static 387 // static
388 bool RenderViewContextMenu::IsDevToolsURL(const GURL& url) { 388 bool RenderViewContextMenu::IsDevToolsURL(const GURL& url) {
389 return url.SchemeIs(chrome::kChromeDevToolsScheme); 389 return url.SchemeIs(content::kChromeDevToolsScheme);
390 } 390 }
391 391
392 // static 392 // static
393 bool RenderViewContextMenu::IsInternalResourcesURL(const GURL& url) { 393 bool RenderViewContextMenu::IsInternalResourcesURL(const GURL& url) {
394 if (!url.SchemeIs(content::kChromeUIScheme)) 394 if (!url.SchemeIs(content::kChromeUIScheme))
395 return false; 395 return false;
396 return url.host() == chrome::kChromeUISyncResourcesHost; 396 return url.host() == chrome::kChromeUISyncResourcesHost;
397 } 397 }
398 398
399 static const int kSpellcheckRadioGroup = 1; 399 static const int kSpellcheckRadioGroup = 1;
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
2110 source_web_contents_->GetRenderViewHost()-> 2110 source_web_contents_->GetRenderViewHost()->
2111 ExecuteMediaPlayerActionAtLocation(location, action); 2111 ExecuteMediaPlayerActionAtLocation(location, action);
2112 } 2112 }
2113 2113
2114 void RenderViewContextMenu::PluginActionAt( 2114 void RenderViewContextMenu::PluginActionAt(
2115 const gfx::Point& location, 2115 const gfx::Point& location,
2116 const WebPluginAction& action) { 2116 const WebPluginAction& action) {
2117 source_web_contents_->GetRenderViewHost()-> 2117 source_web_contents_->GetRenderViewHost()->
2118 ExecutePluginActionAtLocation(location, action); 2118 ExecutePluginActionAtLocation(location, action);
2119 } 2119 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc ('k') | chrome/browser/translate/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698