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

Side by Side Diff: apps/moterm/moterm_view.cc

Issue 1398973004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 2). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_1
Patch Set: add missing copyright notices Created 5 years, 2 months 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 | « apps/moterm/key_util_unittest.cc ('k') | examples/bitmap_uploader/BUILD.gn » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "apps/moterm/moterm_view.h" 5 #include "apps/moterm/moterm_view.h"
6 6
7 #ifndef GL_GLEXT_PROTOTYPES 7 #ifndef GL_GLEXT_PROTOTYPES
8 #define GL_GLEXT_PROTOTYPES 8 #define GL_GLEXT_PROTOTYPES
9 #endif 9 #endif
10 10
11 #include <GLES2/gl2.h> 11 #include <GLES2/gl2.h>
12 #include <GLES2/gl2ext.h> 12 #include <GLES2/gl2ext.h>
13 13
14 #include <algorithm> 14 #include <algorithm>
15 #include <string> 15 #include <string>
16 16
17 #include "apps/moterm/key_util.h" 17 #include "apps/moterm/key_util.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "mojo/public/cpp/bindings/interface_request.h" 19 #include "mojo/public/cpp/bindings/interface_request.h"
20 #include "mojo/services/files/interfaces/file.mojom.h" 20 #include "mojo/services/files/interfaces/file.mojom.h"
21 #include "mojo/services/files/interfaces/types.mojom.h" 21 #include "mojo/services/files/interfaces/types.mojom.h"
22 #include "mojo/services/input_events/public/interfaces/input_event_constants.moj om.h" 22 #include "mojo/services/input_events/interfaces/input_event_constants.mojom.h"
23 #include "mojo/services/input_events/public/interfaces/input_events.mojom.h" 23 #include "mojo/services/input_events/interfaces/input_events.mojom.h"
24 #include "mojo/services/terminal/public/interfaces/terminal_client.mojom.h" 24 #include "mojo/services/terminal/public/interfaces/terminal_client.mojom.h"
25 #include "skia/ext/refptr.h" 25 #include "skia/ext/refptr.h"
26 #include "third_party/dejavu-fonts-ttf-2.34/kDejaVuSansMonoRegular.h" 26 #include "third_party/dejavu-fonts-ttf-2.34/kDejaVuSansMonoRegular.h"
27 #include "third_party/skia/include/core/SkBitmap.h" 27 #include "third_party/skia/include/core/SkBitmap.h"
28 #include "third_party/skia/include/core/SkCanvas.h" 28 #include "third_party/skia/include/core/SkCanvas.h"
29 #include "third_party/skia/include/core/SkColor.h" 29 #include "third_party/skia/include/core/SkColor.h"
30 #include "third_party/skia/include/core/SkImageInfo.h" 30 #include "third_party/skia/include/core/SkImageInfo.h"
31 #include "third_party/skia/include/core/SkPaint.h" 31 #include "third_party/skia/include/core/SkPaint.h"
32 #include "third_party/skia/include/core/SkRect.h" 32 #include "third_party/skia/include/core/SkRect.h"
33 #include "third_party/skia/include/core/SkStream.h" 33 #include "third_party/skia/include/core/SkStream.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 346
347 void MotermView::OnKeyPressed(const mojo::EventPtr& key_event) { 347 void MotermView::OnKeyPressed(const mojo::EventPtr& key_event) {
348 std::string input_sequence = 348 std::string input_sequence =
349 GetInputSequenceForKeyPressedEvent(*key_event, keypad_application_mode_); 349 GetInputSequenceForKeyPressedEvent(*key_event, keypad_application_mode_);
350 if (input_sequence.empty()) 350 if (input_sequence.empty())
351 return; 351 return;
352 352
353 if (driver_) 353 if (driver_)
354 driver_->SendData(input_sequence.data(), input_sequence.size()); 354 driver_->SendData(input_sequence.data(), input_sequence.size());
355 } 355 }
OLDNEW
« no previous file with comments | « apps/moterm/key_util_unittest.cc ('k') | examples/bitmap_uploader/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698