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 "content/shell/browser/shell.h" | 5 #include "content/shell/browser/shell.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" |
8 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "build/build_config.h" |
9 #include "content/public/browser/context_factory.h" | 13 #include "content/public/browser/context_factory.h" |
10 #include "content/public/browser/render_widget_host_view.h" | 14 #include "content/public/browser/render_widget_host_view.h" |
11 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
12 #include "content/public/common/context_menu_params.h" | 16 #include "content/public/common/context_menu_params.h" |
13 #include "content/shell/browser/shell_platform_data_aura.h" | 17 #include "content/shell/browser/shell_platform_data_aura.h" |
14 #include "device/bluetooth/bluetooth_adapter_factory.h" | 18 #include "device/bluetooth/bluetooth_adapter_factory.h" |
15 #include "ui/aura/client/screen_position_client.h" | 19 #include "ui/aura/client/screen_position_client.h" |
16 #include "ui/aura/env.h" | 20 #include "ui/aura/env.h" |
17 #include "ui/aura/window.h" | 21 #include "ui/aura/window.h" |
18 #include "ui/aura/window_event_dispatcher.h" | 22 #include "ui/aura/window_event_dispatcher.h" |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 const content::ContextMenuParams& params) { | 558 const content::ContextMenuParams& params) { |
555 if (headless_) | 559 if (headless_) |
556 return true; | 560 return true; |
557 ShellWindowDelegateView* delegate_view = | 561 ShellWindowDelegateView* delegate_view = |
558 static_cast<ShellWindowDelegateView*>(window_widget_->widget_delegate()); | 562 static_cast<ShellWindowDelegateView*>(window_widget_->widget_delegate()); |
559 delegate_view->ShowWebViewContextMenu(params); | 563 delegate_view->ShowWebViewContextMenu(params); |
560 return true; | 564 return true; |
561 } | 565 } |
562 | 566 |
563 } // namespace content | 567 } // namespace content |
OLD | NEW |