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

Side by Side Diff: sky/shell/ui/engine.h

Issue 945083002: Fix display of fonts in SkyShell (Closed) Base URL: git@github.com:abarth/mojo.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | sky/shell/ui/engine.cc » ('j') | sky/shell/ui/engine.cc » ('J')
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 SKY_SHELL_UI_ENGINE_H_ 5 #ifndef SKY_SHELL_UI_ENGINE_H_
6 #define SKY_SHELL_UI_ENGINE_H_ 6 #define SKY_SHELL_UI_ENGINE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // ViewportObserver: 52 // ViewportObserver:
53 void OnViewportMetricsChanged(int width, int height, 53 void OnViewportMetricsChanged(int width, int height,
54 float device_pixel_ratio) override; 54 float device_pixel_ratio) override;
55 void OnInputEvent(InputEventPtr event) override; 55 void OnInputEvent(InputEventPtr event) override;
56 void LoadURL(const mojo::String& url) override; 56 void LoadURL(const mojo::String& url) override;
57 57
58 // WebViewClient methods: 58 // WebViewClient methods:
59 void initializeLayerTreeView() override; 59 void initializeLayerTreeView() override;
60 void scheduleVisualUpdate() override; 60 void scheduleVisualUpdate() override;
61 blink::WebScreenInfo screenInfo() override;
61 62
62 void UpdateWebViewSize(); 63 void UpdateWebViewSize();
63 64
64 scoped_ptr<PlatformImpl> platform_impl_; 65 scoped_ptr<PlatformImpl> platform_impl_;
65 scoped_ptr<Animator> animator_; 66 scoped_ptr<Animator> animator_;
66 blink::WebView* web_view_; 67 blink::WebView* web_view_;
67 float device_pixel_ratio_; 68 float device_pixel_ratio_;
68 gfx::Size physical_size_; 69 gfx::Size physical_size_;
69 mojo::Binding<ViewportObserver> viewport_observer_binding_; 70 mojo::Binding<ViewportObserver> viewport_observer_binding_;
70 71
71 base::WeakPtrFactory<Engine> weak_factory_; 72 base::WeakPtrFactory<Engine> weak_factory_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(Engine); 74 DISALLOW_COPY_AND_ASSIGN(Engine);
74 }; 75 };
75 76
76 } // namespace shell 77 } // namespace shell
77 } // namespace sky 78 } // namespace sky
78 79
79 #endif // SKY_SHELL_UI_ENGINE_H_ 80 #endif // SKY_SHELL_UI_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | sky/shell/ui/engine.cc » ('j') | sky/shell/ui/engine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698