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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 NOTREACHED(); | 607 NOTREACHED(); |
608 } | 608 } |
609 | 609 |
610 void RenderViewContextMenu::AddMenuItem(int command_id, | 610 void RenderViewContextMenu::AddMenuItem(int command_id, |
611 const string16& title) { | 611 const string16& title) { |
612 menu_model_.AddItem(command_id, title); | 612 menu_model_.AddItem(command_id, title); |
613 } | 613 } |
614 | 614 |
615 void RenderViewContextMenu::UpdateMenuItem(int command_id, | 615 void RenderViewContextMenu::UpdateMenuItem(int command_id, |
616 bool enabled, | 616 bool enabled, |
| 617 bool hidden, |
617 const string16& label) { | 618 const string16& label) { |
618 // This function needs platform-specific implementation. | 619 // This function needs platform-specific implementation. |
619 NOTIMPLEMENTED(); | 620 NOTIMPLEMENTED(); |
620 } | 621 } |
621 | 622 |
622 | 623 |
623 RenderViewHost* RenderViewContextMenu::GetRenderViewHost() const { | 624 RenderViewHost* RenderViewContextMenu::GetRenderViewHost() const { |
624 return source_tab_contents_->render_view_host(); | 625 return source_tab_contents_->render_view_host(); |
625 } | 626 } |
626 | 627 |
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1960 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), | 1961 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages), |
1961 g_browser_process->clipboard()); | 1962 g_browser_process->clipboard()); |
1962 } | 1963 } |
1963 | 1964 |
1964 void RenderViewContextMenu::MediaPlayerActionAt( | 1965 void RenderViewContextMenu::MediaPlayerActionAt( |
1965 const gfx::Point& location, | 1966 const gfx::Point& location, |
1966 const WebMediaPlayerAction& action) { | 1967 const WebMediaPlayerAction& action) { |
1967 source_tab_contents_->render_view_host()-> | 1968 source_tab_contents_->render_view_host()-> |
1968 ExecuteMediaPlayerActionAtLocation(location, action); | 1969 ExecuteMediaPlayerActionAtLocation(location, action); |
1969 } | 1970 } |
OLD | NEW |