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

Side by Side Diff: tools/viewer/sk_app/android/Window_android.h

Issue 2004633002: Add drawer with state information (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Merge Created 4 years, 6 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 | « tools/viewer/sk_app/Window.cpp ('k') | tools/viewer/sk_app/android/Window_android.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef Window_android_DEFINED 8 #ifndef Window_android_DEFINED
9 #define Window_android_DEFINED 9 #define Window_android_DEFINED
10 10
(...skipping 10 matching lines...) Expand all
21 bool init(SkiaAndroidApp* skiaAndroidApp); 21 bool init(SkiaAndroidApp* skiaAndroidApp);
22 void initDisplay(ANativeWindow* window); 22 void initDisplay(ANativeWindow* window);
23 void onDisplayDestroyed(); 23 void onDisplayDestroyed();
24 24
25 const DisplayParams& getDisplayParams() override; 25 const DisplayParams& getDisplayParams() override;
26 void setTitle(const char*) override; 26 void setTitle(const char*) override;
27 void show() override {} 27 void show() override {}
28 28
29 bool attach(BackendType attachType, const DisplayParams& params) override; 29 bool attach(BackendType attachType, const DisplayParams& params) override;
30 void onInval() override; 30 void onInval() override;
31 void setUIState(const Json::Value& state) override;
31 32
32 void paintIfNeeded(); 33 void paintIfNeeded();
33 34
34 bool scaleContentToFit() const override { return true; } 35 bool scaleContentToFit() const override { return true; }
35 bool supportsContentRect() const override { return true; } 36 bool supportsContentRect() const override { return true; }
36 SkRect getContentRect() override { return fContentRect; } 37 SkRect getContentRect() override { return fContentRect; }
37 void setContentRect(int l, int t, int r, int b) { fContentRect.set(l,t,r,b); } 38 void setContentRect(int l, int t, int r, int b) { fContentRect.set(l,t,r,b); }
38 39
39 private: 40 private:
40 SkiaAndroidApp* fSkiaAndroidApp = nullptr; 41 SkiaAndroidApp* fSkiaAndroidApp = nullptr;
41 SkRect fContentRect; 42 SkRect fContentRect;
42 DisplayParams fDisplayParams; 43 DisplayParams fDisplayParams;
43 }; 44 };
44 45
45 } // namespace sk_app 46 } // namespace sk_app
46 47
47 #endif 48 #endif
OLDNEW
« no previous file with comments | « tools/viewer/sk_app/Window.cpp ('k') | tools/viewer/sk_app/android/Window_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698