| OLD | NEW |
| 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" |
| 11 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
| 12 #include "mojo/public/cpp/bindings/binding.h" | 12 #include "mojo/public/cpp/bindings/binding.h" |
| 13 #include "mojo/public/cpp/system/core.h" | 13 #include "mojo/public/cpp/system/core.h" |
| 14 #include "skia/ext/refptr.h" | 14 #include "skia/ext/refptr.h" |
| 15 #include "sky/engine/public/web/WebFrameClient.h" | 15 #include "sky/engine/public/web/WebFrameClient.h" |
| 16 #include "sky/engine/public/web/WebViewClient.h" | 16 #include "sky/engine/public/web/WebViewClient.h" |
| 17 #include "sky/shell/gpu_delegate.h" | 17 #include "sky/shell/gpu_delegate.h" |
| 18 #include "sky/shell/ui_delegate.h" | 18 #include "sky/shell/ui_delegate.h" |
| 19 #include "third_party/skia/include/core/SkPicture.h" | 19 #include "third_party/skia/include/core/SkPicture.h" |
| 20 #include "ui/gfx/geometry/size.h" | 20 #include "ui/gfx/geometry/size.h" |
| 21 | 21 |
| 22 namespace sky { | 22 namespace sky { |
| 23 class PlatformImpl; |
| 23 namespace shell { | 24 namespace shell { |
| 24 class Animator; | 25 class Animator; |
| 25 class PlatformImpl; | |
| 26 | 26 |
| 27 class Engine : public UIDelegate, | 27 class Engine : public UIDelegate, |
| 28 public ViewportObserver, | 28 public ViewportObserver, |
| 29 public blink::WebFrameClient, | 29 public blink::WebFrameClient, |
| 30 public blink::WebViewClient { | 30 public blink::WebViewClient { |
| 31 public: | 31 public: |
| 32 struct Config { | 32 struct Config { |
| 33 base::WeakPtr<GPUDelegate> gpu_delegate; | 33 base::WeakPtr<GPUDelegate> gpu_delegate; |
| 34 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner; | 34 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner; |
| 35 }; | 35 }; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 base::WeakPtrFactory<Engine> weak_factory_; | 72 base::WeakPtrFactory<Engine> weak_factory_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(Engine); | 74 DISALLOW_COPY_AND_ASSIGN(Engine); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace shell | 77 } // namespace shell |
| 78 } // namespace sky | 78 } // namespace sky |
| 79 | 79 |
| 80 #endif // SKY_SHELL_UI_ENGINE_H_ | 80 #endif // SKY_SHELL_UI_ENGINE_H_ |
| OLD | NEW |