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

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

Issue 974483004: Stocks app shouldn't show black when resuming from recents list (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/shell/shell.cc ('k') | sky/shell/ui/engine.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 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 void Init(); 49 void Init();
50 50
51 void BeginFrame(base::TimeTicks frame_time); 51 void BeginFrame(base::TimeTicks frame_time);
52 skia::RefPtr<SkPicture> Paint(); 52 skia::RefPtr<SkPicture> Paint();
53 53
54 private: 54 private:
55 // UIDelegate methods: 55 // UIDelegate methods:
56 void ConnectToViewportObserver( 56 void ConnectToViewportObserver(
57 mojo::InterfaceRequest<ViewportObserver> request) override; 57 mojo::InterfaceRequest<ViewportObserver> request) override;
58 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget) override;
59 void OnOutputSurfaceDestroyed() override;
58 60
59 // ViewportObserver: 61 // ViewportObserver:
60 void OnViewportMetricsChanged(int width, int height, 62 void OnViewportMetricsChanged(int width, int height,
61 float device_pixel_ratio) override; 63 float device_pixel_ratio) override;
62 void OnInputEvent(InputEventPtr event) override; 64 void OnInputEvent(InputEventPtr event) override;
63 void LoadURL(const mojo::String& url) override; 65 void LoadURL(const mojo::String& url) override;
64 66
65 // WebViewClient methods: 67 // WebViewClient methods:
66 void frameDetached(blink::WebFrame*) override; 68 void frameDetached(blink::WebFrame*) override;
67 void initializeLayerTreeView() override; 69 void initializeLayerTreeView() override;
68 void scheduleVisualUpdate() override; 70 void scheduleVisualUpdate() override;
69 blink::WebScreenInfo screenInfo() override; 71 blink::WebScreenInfo screenInfo() override;
70 blink::ServiceProvider* services() override; 72 blink::ServiceProvider* services() override;
71 void didCreateIsolate(blink::WebLocalFrame* frame, 73 void didCreateIsolate(blink::WebLocalFrame* frame,
72 Dart_Isolate isolate) override; 74 Dart_Isolate isolate) override;
73 75
74 // Services methods: 76 // Services methods:
75 mojo::NavigatorHost* NavigatorHost() override; 77 mojo::NavigatorHost* NavigatorHost() override;
76 78
77 // NavigatorHost methods: 79 // NavigatorHost methods:
78 void RequestNavigate(mojo::Target target, 80 void RequestNavigate(mojo::Target target,
79 mojo::URLRequestPtr request) override; 81 mojo::URLRequestPtr request) override;
80 void DidNavigateLocally(const mojo::String& url) override; 82 void DidNavigateLocally(const mojo::String& url) override;
81 void RequestNavigateHistory(int32_t delta) override; 83 void RequestNavigateHistory(int32_t delta) override;
82 84
83 mojo::ServiceProviderPtr CreateServiceProvider(); 85 mojo::ServiceProviderPtr CreateServiceProvider();
84 void UpdateWebViewSize(); 86 void UpdateWebViewSize();
85 87
86 scoped_refptr<base::SingleThreadTaskRunner> java_task_runner_; 88 Config config_;
87 mojo::ServiceProviderPtr service_provider_; 89 mojo::ServiceProviderPtr service_provider_;
88 scoped_ptr<PlatformImpl> platform_impl_; 90 scoped_ptr<PlatformImpl> platform_impl_;
89 scoped_ptr<Animator> animator_; 91 scoped_ptr<Animator> animator_;
90 blink::WebView* web_view_; 92 blink::WebView* web_view_;
91 float device_pixel_ratio_; 93 float device_pixel_ratio_;
92 gfx::Size physical_size_; 94 gfx::Size physical_size_;
93 mojo::Binding<ViewportObserver> viewport_observer_binding_; 95 mojo::Binding<ViewportObserver> viewport_observer_binding_;
94 96
95 base::WeakPtrFactory<Engine> weak_factory_; 97 base::WeakPtrFactory<Engine> weak_factory_;
96 98
97 DISALLOW_COPY_AND_ASSIGN(Engine); 99 DISALLOW_COPY_AND_ASSIGN(Engine);
98 }; 100 };
99 101
100 } // namespace shell 102 } // namespace shell
101 } // namespace sky 103 } // namespace sky
102 104
103 #endif // SKY_SHELL_UI_ENGINE_H_ 105 #endif // SKY_SHELL_UI_ENGINE_H_
OLDNEW
« no previous file with comments | « sky/shell/shell.cc ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698