| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXAMPLES_SURFACES_APP_EMBEDDER_H_ | 5 #ifndef EXAMPLES_SURFACES_APP_EMBEDDER_H_ |
| 6 #define EXAMPLES_SURFACES_APP_EMBEDDER_H_ | 6 #define EXAMPLES_SURFACES_APP_EMBEDDER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/surfaces/surface_id.h" | 9 #include "cc/surfaces/surface_id.h" |
| 10 #include "mojo/services/surfaces/public/interfaces/display.mojom.h" | 10 #include "mojo/services/surfaces/interfaces/display.mojom.h" |
| 11 #include "ui/gfx/size.h" | 11 #include "ui/gfx/size.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 namespace examples { | 14 namespace examples { |
| 15 | 15 |
| 16 // Simple example of a surface embedder that embeds two other surfaces. | 16 // Simple example of a surface embedder that embeds two other surfaces. |
| 17 class Embedder { | 17 class Embedder { |
| 18 public: | 18 public: |
| 19 explicit Embedder(Display* display); | 19 explicit Embedder(Display* display); |
| 20 ~Embedder(); | 20 ~Embedder(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 Display* display_; | 31 Display* display_; |
| 32 bool frame_pending_; | 32 bool frame_pending_; |
| 33 | 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(Embedder); | 34 DISALLOW_COPY_AND_ASSIGN(Embedder); |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 } // namespace examples | 37 } // namespace examples |
| 38 } // namespace mojo | 38 } // namespace mojo |
| 39 | 39 |
| 40 #endif // EXAMPLES_SURFACES_APP_EMBEDDER_H_ | 40 #endif // EXAMPLES_SURFACES_APP_EMBEDDER_H_ |
| OLD | NEW |