| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |