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

Side by Side Diff: components/html_viewer/ui_setup_android.h

Issue 1136743003: Plumbs through screen size and scale factor to html_viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « components/html_viewer/ui_setup.h ('k') | components/html_viewer/ui_setup_android.cc » ('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 #ifndef COMPONENTS_HTML_VIEWER_UI_SETUP_ANDROID_H_ 5 #ifndef COMPONENTS_HTML_VIEWER_UI_SETUP_ANDROID_H_
6 #define COMPONENTS_HTML_VIEWER_UI_SETUP_ANDROID_H_ 6 #define COMPONENTS_HTML_VIEWER_UI_SETUP_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Screen; 12 class Screen;
13 class Size;
13 } 14 }
14 15
15 namespace ui { 16 namespace ui {
16 class GestureConfiguration; 17 class GestureConfiguration;
17 } 18 }
18 19
19 namespace html_viewer { 20 namespace html_viewer {
20 21
21 class GestureConfigurationMandoline; 22 class GestureConfigurationMandoline;
22 23
23 class UISetup { 24 class UISetup {
24 public: 25 public:
25 UISetup(); 26 UISetup(const gfx::Size& screen_size_in_pixels, float device_pixel_ratio);
26 ~UISetup(); 27 ~UISetup();
27 28
28 private: 29 private:
29 scoped_ptr<gfx::Screen> screen_; 30 scoped_ptr<gfx::Screen> screen_;
30 scoped_ptr<GestureConfigurationMandoline> gesture_configuration_; 31 scoped_ptr<GestureConfigurationMandoline> gesture_configuration_;
31 32
32 DISALLOW_COPY_AND_ASSIGN(UISetup); 33 DISALLOW_COPY_AND_ASSIGN(UISetup);
33 }; 34 };
34 35
35 } // namespace html_viewer 36 } // namespace html_viewer
36 37
37 #endif // COMPONENTS_HTML_VIEWER_UI_SETUP_ANDROID_H_ 38 #endif // COMPONENTS_HTML_VIEWER_UI_SETUP_ANDROID_H_
OLDNEW
« no previous file with comments | « components/html_viewer/ui_setup.h ('k') | components/html_viewer/ui_setup_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698