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

Side by Side Diff: services/keyboard_native/view_observer_delegate.cc

Issue 1394303004: Move //mojo/services/X/public/... to //mojo/services/X/... (part 3). (Closed) Base URL: https://github.com/domokit/mojo.git@no_public_2-x-no_public_1
Patch Set: 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 | « services/keyboard_native/predictor.h ('k') | services/kiosk_wm/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 <math.h> 5 #include <math.h>
6 6
7 #include "services/keyboard_native/view_observer_delegate.h" 7 #include "services/keyboard_native/view_observer_delegate.h"
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/sys_info.h" 10 #include "base/sys_info.h"
11 #include "mojo/gpu/gl_texture.h" 11 #include "mojo/gpu/gl_texture.h"
12 #include "mojo/public/cpp/application/application_impl.h" 12 #include "mojo/public/cpp/application/application_impl.h"
13 #include "mojo/public/cpp/application/connect.h" 13 #include "mojo/public/cpp/application/connect.h"
14 #include "mojo/services/prediction/public/interfaces/prediction.mojom.h" 14 #include "mojo/services/prediction/interfaces/prediction.mojom.h"
15 #include "mojo/skia/ganesh_surface.h" 15 #include "mojo/skia/ganesh_surface.h"
16 #include "services/keyboard_native/clip_animation.h" 16 #include "services/keyboard_native/clip_animation.h"
17 #include "services/keyboard_native/keyboard_service_impl.h" 17 #include "services/keyboard_native/keyboard_service_impl.h"
18 #include "services/keyboard_native/predictor.h" 18 #include "services/keyboard_native/predictor.h"
19 #include "skia/ext/refptr.h" 19 #include "skia/ext/refptr.h"
20 #include "third_party/skia/include/core/SkCanvas.h" 20 #include "third_party/skia/include/core/SkCanvas.h"
21 #include "third_party/skia/include/core/SkTypeface.h" 21 #include "third_party/skia/include/core/SkTypeface.h"
22 #include "ui/gfx/geometry/rect_f.h" 22 #include "ui/gfx/geometry/rect_f.h"
23 #include "ui/gfx/shadow_value.h" 23 #include "ui/gfx/shadow_value.h"
24 #include "ui/gfx/skia_util.h" 24 #include "ui/gfx/skia_util.h"
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 377
378 void ViewObserverDelegate::OnViewDestroyed(mojo::View* view) { 378 void ViewObserverDelegate::OnViewDestroyed(mojo::View* view) {
379 if (view_ == view) { 379 if (view_ == view) {
380 view_->RemoveObserver(this); 380 view_->RemoveObserver(this);
381 view_ = nullptr; 381 view_ = nullptr;
382 gl_context_->Destroy(); 382 gl_context_->Destroy();
383 } 383 }
384 } 384 }
385 385
386 } // namespace keyboard 386 } // namespace keyboard
OLDNEW
« no previous file with comments | « services/keyboard_native/predictor.h ('k') | services/kiosk_wm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698