Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1329)

Side by Side Diff: examples/keyboard/keyboard_view.cc

Issue 684543003: Move //mojo/examples to //examples (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « examples/keyboard/keyboard_view.h ('k') | examples/keyboard/keys.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « examples/keyboard/keyboard_view.h ('k') | examples/keyboard/keys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698