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

Side by Side Diff: blimp/client/app/android/blimp_compositor_manager_android.h

Issue 1779673003: Added network components for blimp text input feature (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit tests and addressed comments Created 4 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 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 #ifndef BLIMP_CLIENT_APP_ANDROID_BLIMP_COMPOSITOR_MANAGER_ANDROID_H_ 5 #ifndef BLIMP_CLIENT_APP_ANDROID_BLIMP_COMPOSITOR_MANAGER_ANDROID_H_
6 #define BLIMP_CLIENT_APP_ANDROID_BLIMP_COMPOSITOR_MANAGER_ANDROID_H_ 6 #define BLIMP_CLIENT_APP_ANDROID_BLIMP_COMPOSITOR_MANAGER_ANDROID_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "blimp/client/feature/compositor/blimp_compositor_manager.h" 10 #include "blimp/client/feature/compositor/blimp_compositor_manager.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 protected: 42 protected:
43 // |size| is the size of the display. |real_size_supported| determines 43 // |size| is the size of the display. |real_size_supported| determines
44 // whether or not this size is the real display size or the display size 44 // whether or not this size is the real display size or the display size
45 // not including the system decorations. |dp_to_px| is the scale factor that 45 // not including the system decorations. |dp_to_px| is the scale factor that
46 // is required to convert from dp (device pixels) to px. 46 // is required to convert from dp (device pixels) to px.
47 BlimpCompositorManagerAndroid(const gfx::Size& size, 47 BlimpCompositorManagerAndroid(const gfx::Size& size,
48 bool real_size_supported, 48 bool real_size_supported,
49 RenderWidgetFeature* render_widget_feature); 49 RenderWidgetFeature* render_widget_feature);
50 50
51 // BlimpCompositor implementation. 51 // BlimpCompositor implementation.
52 void GenerateLayerTreeSettings(cc::LayerTreeSettings* settings); 52 void GenerateLayerTreeSettings(cc::LayerTreeSettings* settings) override;
Wez 2016/03/18 20:51:27 nit: Is this inherited from some other CL..?
shaktisahu 2016/03/22 19:44:19 Yes. It is related to Khushal's another change whi
53 53
54 private: 54 private:
55 // Used to determine tile size for the compositor's rastered tiles. For a 55 // Used to determine tile size for the compositor's rastered tiles. For a
56 // device of width X height |portrait_width_| will be min(width, height) and 56 // device of width X height |portrait_width_| will be min(width, height) and
57 // |landscape_width_| will be max(width, height). 57 // |landscape_width_| will be max(width, height).
58 int portrait_width_; 58 int portrait_width_;
59 int landscape_width_; 59 int landscape_width_;
60 60
61 // True if the |portrait_width_| and |landscape_width_| represent the device's 61 // True if the |portrait_width_| and |landscape_width_| represent the device's
62 // physical dimensions, including any area occupied by system decorations. 62 // physical dimensions, including any area occupied by system decorations.
63 bool real_size_supported_; 63 bool real_size_supported_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(BlimpCompositorManagerAndroid); 65 DISALLOW_COPY_AND_ASSIGN(BlimpCompositorManagerAndroid);
66 }; 66 };
67 67
68 } // namespace client 68 } // namespace client
69 } // namespace blimp 69 } // namespace blimp
70 70
71 #endif // BLIMP_CLIENT_APP_ANDROID_BLIMP_COMPOSITOR_MANAGER_ANDROID_H_ 71 #endif // BLIMP_CLIENT_APP_ANDROID_BLIMP_COMPOSITOR_MANAGER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698