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

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

Issue 954893002: Add support for VIEW intents to SkyShell. (Closed) Base URL: git@github.com:domokit/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 | « sky/shell/apk/src/org/domokit/sky/shell/SkyShellActivity.java ('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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 private: 47 private:
48 // UIDelegate methods: 48 // UIDelegate methods:
49 void ConnectToViewportObserver( 49 void ConnectToViewportObserver(
50 mojo::InterfaceRequest<ViewportObserver> request) override; 50 mojo::InterfaceRequest<ViewportObserver> request) override;
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 57
57 // WebViewClient methods: 58 // WebViewClient methods:
58 void initializeLayerTreeView() override; 59 void initializeLayerTreeView() override;
59 void scheduleVisualUpdate() override; 60 void scheduleVisualUpdate() override;
60 61
62 void UpdateWebViewSize();
63
61 scoped_ptr<PlatformImpl> platform_impl_; 64 scoped_ptr<PlatformImpl> platform_impl_;
62 scoped_ptr<Animator> animator_; 65 scoped_ptr<Animator> animator_;
63 blink::WebView* web_view_; 66 blink::WebView* web_view_;
64 float device_pixel_ratio_; 67 float device_pixel_ratio_;
65 gfx::Size physical_size_; 68 gfx::Size physical_size_;
66 mojo::Binding<ViewportObserver> viewport_observer_binding_; 69 mojo::Binding<ViewportObserver> viewport_observer_binding_;
67 70
68 base::WeakPtrFactory<Engine> weak_factory_; 71 base::WeakPtrFactory<Engine> weak_factory_;
69 72
70 DISALLOW_COPY_AND_ASSIGN(Engine); 73 DISALLOW_COPY_AND_ASSIGN(Engine);
71 }; 74 };
72 75
73 } // namespace shell 76 } // namespace shell
74 } // namespace sky 77 } // namespace sky
75 78
76 #endif // SKY_SHELL_UI_ENGINE_H_ 79 #endif // SKY_SHELL_UI_ENGINE_H_
OLDNEW
« no previous file with comments | « sky/shell/apk/src/org/domokit/sky/shell/SkyShellActivity.java ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698