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

Side by Side Diff: services/native_viewport/platform_viewport_android.h

Issue 1033513003: Cleans up events to just the parts we're actually using (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cleanup Created 5 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_ANDROID_H_ 5 #ifndef SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_ANDROID_H_
6 #define SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_ANDROID_H_ 6 #define SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_ANDROID_H_
7 7
8 #include "base/android/jni_weak_ref.h" 8 #include "base/android/jni_weak_ref.h"
9 #include "base/android/scoped_java_ref.h" 9 #include "base/android/scoped_java_ref.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 jint unicode_character); 47 jint unicode_character);
48 48
49 private: 49 private:
50 // Overridden from PlatformViewport: 50 // Overridden from PlatformViewport:
51 virtual void Init(const gfx::Rect& bounds) override; 51 virtual void Init(const gfx::Rect& bounds) override;
52 virtual void Show() override; 52 virtual void Show() override;
53 virtual void Hide() override; 53 virtual void Hide() override;
54 virtual void Close() override; 54 virtual void Close() override;
55 virtual gfx::Size GetSize() override; 55 virtual gfx::Size GetSize() override;
56 virtual void SetBounds(const gfx::Rect& bounds) override; 56 virtual void SetBounds(const gfx::Rect& bounds) override;
57 virtual void SetCapture() override;
58 virtual void ReleaseCapture() override;
59 57
60 void ReleaseWindow(); 58 void ReleaseWindow();
61 59
62 Delegate* delegate_; 60 Delegate* delegate_;
63 ANativeWindow* window_; 61 ANativeWindow* window_;
64 mojo::ViewportMetricsPtr metrics_; 62 mojo::ViewportMetricsPtr metrics_;
65 ui::SequentialIDGenerator id_generator_; 63 ui::SequentialIDGenerator id_generator_;
66 64
67 base::WeakPtrFactory<PlatformViewportAndroid> weak_factory_; 65 base::WeakPtrFactory<PlatformViewportAndroid> weak_factory_;
68 66
69 DISALLOW_COPY_AND_ASSIGN(PlatformViewportAndroid); 67 DISALLOW_COPY_AND_ASSIGN(PlatformViewportAndroid);
70 }; 68 };
71 69
72 } // namespace native_viewport 70 } // namespace native_viewport
73 71
74 #endif // SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_ANDROID_H_ 72 #endif // SERVICES_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_ANDROID_H_
OLDNEW
« no previous file with comments | « services/native_viewport/platform_viewport.h ('k') | services/native_viewport/platform_viewport_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698