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 "ash/keyboard_overlay/keyboard_overlay_delegate.h" | 5 #include "ash/keyboard_overlay/keyboard_overlay_delegate.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "content/public/browser/web_ui.h" | 14 #include "content/public/browser/web_ui.h" |
15 #include "content/public/browser/web_ui_message_handler.h" | 15 #include "content/public/browser/web_ui_message_handler.h" |
16 #include "ui/aura/window_event_dispatcher.h" | 16 #include "ui/aura/window_event_dispatcher.h" |
17 #include "ui/base/l10n/l10n_util.h" | |
18 #include "ui/gfx/screen.h" | 17 #include "ui/gfx/screen.h" |
19 #include "ui/views/controls/webview/web_dialog_view.h" | 18 #include "ui/views/controls/webview/web_dialog_view.h" |
20 #include "ui/views/widget/widget.h" | 19 #include "ui/views/widget/widget.h" |
21 | 20 |
22 using content::WebContents; | 21 using content::WebContents; |
23 using content::WebUIMessageHandler; | 22 using content::WebUIMessageHandler; |
24 | 23 |
25 namespace { | 24 namespace { |
26 | 25 |
27 const int kBaseWidth = 1252; | 26 const int kBaseWidth = 1252; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 bool KeyboardOverlayDelegate::ShouldShowDialogTitle() const { | 139 bool KeyboardOverlayDelegate::ShouldShowDialogTitle() const { |
141 return false; | 140 return false; |
142 } | 141 } |
143 | 142 |
144 bool KeyboardOverlayDelegate::HandleContextMenu( | 143 bool KeyboardOverlayDelegate::HandleContextMenu( |
145 const content::ContextMenuParams& params) { | 144 const content::ContextMenuParams& params) { |
146 return true; | 145 return true; |
147 } | 146 } |
148 | 147 |
149 } // namespace ash | 148 } // namespace ash |
OLD | NEW |