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

Side by Side Diff: ui/android/window_android.h

Issue 2765443004: AndroidOverlay implementation using Dialog. (Closed)
Patch Set: fixed test Created 3 years, 7 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 UI_ANDROID_WINDOW_ANDROID_H_ 5 #ifndef UI_ANDROID_WINDOW_ANDROID_H_
6 #define UI_ANDROID_WINDOW_ANDROID_H_ 6 #define UI_ANDROID_WINDOW_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <list> 9 #include <list>
10 #include <memory> 10 #include <memory>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 bool paused); 79 bool paused);
80 80
81 // Return whether the specified Android permission is granted. 81 // Return whether the specified Android permission is granted.
82 bool HasPermission(const std::string& permission); 82 bool HasPermission(const std::string& permission);
83 // Return whether the specified Android permission can be requested by Chrome. 83 // Return whether the specified Android permission can be requested by Chrome.
84 bool CanRequestPermission(const std::string& permission); 84 bool CanRequestPermission(const std::string& permission);
85 85
86 static WindowAndroid* CreateForTesting(); 86 static WindowAndroid* CreateForTesting();
87 void DestroyForTesting(); 87 void DestroyForTesting();
88 88
89 // Return the window token for this window, if one exists.
90 base::android::ScopedJavaLocalRef<jobject> GetWindowToken();
91
89 private: 92 private:
90 class WindowBeginFrameSource; 93 class WindowBeginFrameSource;
91 friend class DisplayAndroidManager; 94 friend class DisplayAndroidManager;
92 friend class WindowBeginFrameSource; 95 friend class WindowBeginFrameSource;
93 96
94 ~WindowAndroid() override; 97 ~WindowAndroid() override;
95 98
96 void SetNeedsBeginFrames(bool needs_begin_frames); 99 void SetNeedsBeginFrames(bool needs_begin_frames);
97 void RequestVSyncUpdate(); 100 void RequestVSyncUpdate();
98 101
(...skipping 12 matching lines...) Expand all
111 std::unique_ptr<WindowBeginFrameSource> begin_frame_source_; 114 std::unique_ptr<WindowBeginFrameSource> begin_frame_source_;
112 bool needs_begin_frames_; 115 bool needs_begin_frames_;
113 std::list<base::Closure> vsync_complete_callbacks_; 116 std::list<base::Closure> vsync_complete_callbacks_;
114 117
115 DISALLOW_COPY_AND_ASSIGN(WindowAndroid); 118 DISALLOW_COPY_AND_ASSIGN(WindowAndroid);
116 }; 119 };
117 120
118 } // namespace ui 121 } // namespace ui
119 122
120 #endif // UI_ANDROID_WINDOW_ANDROID_H_ 123 #endif // UI_ANDROID_WINDOW_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/android/java/src/org/chromium/ui/base/WindowAndroid.java ('k') | ui/android/window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698