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