| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "athena/content/render_view_context_menu_impl.h" | 5 #include "athena/content/render_view_context_menu_impl.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "components/renderer_context_menu/context_menu_content_type.h" | 8 #include "components/renderer_context_menu/context_menu_content_type.h" |
| 9 #include "components/renderer_context_menu/views/toolkit_delegate_views.h" | 9 #include "components/renderer_context_menu/views/toolkit_delegate_views.h" |
| 10 #include "content/public/browser/browser_context.h" | 10 #include "content/public/browser/browser_context.h" |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 case CMD_VIEW_SOURCE: | 219 case CMD_VIEW_SOURCE: |
| 220 source_web_contents_->ViewSource(); | 220 source_web_contents_->ViewSource(); |
| 221 break; | 221 break; |
| 222 | 222 |
| 223 // Link | 223 // Link |
| 224 case CMD_OPEN_LINK_NEW_ACTIVITY: | 224 case CMD_OPEN_LINK_NEW_ACTIVITY: |
| 225 OpenURL( | 225 OpenURL( |
| 226 params_.link_url, | 226 params_.link_url, |
| 227 params_.frame_url.is_empty() ? params_.page_url : params_.frame_url, | 227 params_.frame_url.is_empty() ? params_.page_url : params_.frame_url, |
| 228 NEW_FOREGROUND_TAB, | 228 NEW_FOREGROUND_TAB, |
| 229 content::PAGE_TRANSITION_LINK); | 229 ui::PAGE_TRANSITION_LINK); |
| 230 break; | 230 break; |
| 231 | 231 |
| 232 // Editable | 232 // Editable |
| 233 case CMD_UNDO: | 233 case CMD_UNDO: |
| 234 source_web_contents_->Undo(); | 234 source_web_contents_->Undo(); |
| 235 break; | 235 break; |
| 236 | 236 |
| 237 case CMD_REDO: | 237 case CMD_REDO: |
| 238 source_web_contents_->Redo(); | 238 source_web_contents_->Redo(); |
| 239 break; | 239 break; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 258 source_web_contents_->Delete(); | 258 source_web_contents_->Delete(); |
| 259 break; | 259 break; |
| 260 | 260 |
| 261 case CMD_SELECT_ALL: | 261 case CMD_SELECT_ALL: |
| 262 source_web_contents_->SelectAll(); | 262 source_web_contents_->SelectAll(); |
| 263 break; | 263 break; |
| 264 } | 264 } |
| 265 } | 265 } |
| 266 | 266 |
| 267 } // namespace athena | 267 } // namespace athena |
| OLD | NEW |