| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/views/tab_contents/render_view_context_menu_win.h" | 5 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_win.h" |
| 6 | 6 |
| 7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/tab_contents/retargeting_details.h" | 10 #include "chrome/browser/tab_contents/retargeting_details.h" |
| 10 #include "chrome/browser/ui/browser_finder.h" | 11 #include "chrome/browser/ui/browser_finder.h" |
| 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 12 #include "chrome/common/chrome_notification_types.h" | |
| 13 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
| 14 #include "win8/util/win8_util.h" | 14 #include "win8/util/win8_util.h" |
| 15 | 15 |
| 16 using content::WebContents; | 16 using content::WebContents; |
| 17 | 17 |
| 18 RenderViewContextMenuWin::RenderViewContextMenuWin( | 18 RenderViewContextMenuWin::RenderViewContextMenuWin( |
| 19 WebContents* web_contents, | 19 WebContents* web_contents, |
| 20 const content::ContextMenuParams& params) | 20 const content::ContextMenuParams& params) |
| 21 : RenderViewContextMenuViews(web_contents, params) { | 21 : RenderViewContextMenuViews(web_contents, params) { |
| 22 } | 22 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 DCHECK(new_contents); | 73 DCHECK(new_contents); |
| 74 return; | 74 return; |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 RenderViewContextMenu::ExecuteCommand(command_id, event_flags); | 77 RenderViewContextMenu::ExecuteCommand(command_id, event_flags); |
| 78 } | 78 } |
| 79 | 79 |
| 80 void RenderViewContextMenuWin::SetExternal() { | 80 void RenderViewContextMenuWin::SetExternal() { |
| 81 external_ = true; | 81 external_ = true; |
| 82 } | 82 } |
| OLD | NEW |