OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "ui/views/views_delegate.h" | 5 #include "ui/views/views_delegate.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "ui/views/views_touch_selection_controller_factory.h" | 8 #include "ui/views/views_touch_selection_controller_factory.h" |
9 | 9 |
10 #if defined(USE_AURA) | 10 #if defined(USE_AURA) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 ui::AXEvent event_type) { | 47 ui::AXEvent event_type) { |
48 } | 48 } |
49 | 49 |
50 void ViewsDelegate::NotifyMenuItemFocused(const base::string16& menu_name, | 50 void ViewsDelegate::NotifyMenuItemFocused(const base::string16& menu_name, |
51 const base::string16& menu_item_name, | 51 const base::string16& menu_item_name, |
52 int item_index, | 52 int item_index, |
53 int item_count, | 53 int item_count, |
54 bool has_submenu) { | 54 bool has_submenu) { |
55 } | 55 } |
56 | 56 |
| 57 void ViewsDelegate::HandleKeyEventOnMenu(ui::KeyEvent* event) { |
| 58 } |
| 59 |
57 #if defined(OS_WIN) | 60 #if defined(OS_WIN) |
58 HICON ViewsDelegate::GetDefaultWindowIcon() const { | 61 HICON ViewsDelegate::GetDefaultWindowIcon() const { |
59 return nullptr; | 62 return nullptr; |
60 } | 63 } |
61 | 64 |
62 bool ViewsDelegate::IsWindowInMetro(gfx::NativeWindow window) const { | 65 bool ViewsDelegate::IsWindowInMetro(gfx::NativeWindow window) const { |
63 return false; | 66 return false; |
64 } | 67 } |
65 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) | 68 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) |
66 gfx::ImageSkia* ViewsDelegate::GetDefaultWindowIcon() const { | 69 gfx::ImageSkia* ViewsDelegate::GetDefaultWindowIcon() const { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 views_delegate = this; | 122 views_delegate = this; |
120 | 123 |
121 ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get()); | 124 ui::TouchEditingControllerFactory::SetInstance(views_tsc_factory_.get()); |
122 | 125 |
123 #if defined(USE_AURA) | 126 #if defined(USE_AURA) |
124 touch_selection_menu_runner_.reset(new TouchSelectionMenuRunnerViews()); | 127 touch_selection_menu_runner_.reset(new TouchSelectionMenuRunnerViews()); |
125 #endif | 128 #endif |
126 } | 129 } |
127 | 130 |
128 } // namespace views | 131 } // namespace views |
OLD | NEW |