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 "mojo/examples/keyboard/keyboard_view.h" | 5 #include "examples/keyboard/keyboard_view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "mojo/examples/keyboard/keyboard_delegate.h" | 11 #include "examples/keyboard/keyboard_delegate.h" |
12 #include "mojo/examples/keyboard/keys.h" | 12 #include "examples/keyboard/keys.h" |
13 #include "ui/events/keycodes/keyboard_code_conversion.h" | 13 #include "ui/events/keycodes/keyboard_code_conversion.h" |
14 #include "ui/events/keycodes/keyboard_codes.h" | 14 #include "ui/events/keycodes/keyboard_codes.h" |
15 #include "ui/gfx/canvas.h" | 15 #include "ui/gfx/canvas.h" |
16 #include "ui/views/background.h" | 16 #include "ui/views/background.h" |
17 #include "ui/views/controls/button/label_button.h" | 17 #include "ui/views/controls/button/label_button.h" |
18 #include "ui/views/controls/button/label_button_border.h" | 18 #include "ui/views/controls/button/label_button_border.h" |
19 | 19 |
20 namespace mojo { | 20 namespace mojo { |
21 namespace examples { | 21 namespace examples { |
22 | 22 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 #if defined(OS_WIN) | 247 #if defined(OS_WIN) |
248 int key_event_flags = 0; | 248 int key_event_flags = 0; |
249 #else | 249 #else |
250 int key_event_flags = key.event_flags; | 250 int key_event_flags = key.event_flags; |
251 #endif | 251 #endif |
252 delegate_->OnKeyPressed(key.keyboard_code(), key_event_flags | event_flags()); | 252 delegate_->OnKeyPressed(key.keyboard_code(), key_event_flags | event_flags()); |
253 } | 253 } |
254 | 254 |
255 } // namespace examples | 255 } // namespace examples |
256 } // namespace mojo | 256 } // namespace mojo |
OLD | NEW |