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 EXAMPLES_UI_TILE_TILE_VIEW_H_ | 5 #ifndef EXAMPLES_UI_TILE_TILE_VIEW_H_ |
6 #define EXAMPLES_UI_TILE_TILE_VIEW_H_ | 6 #define EXAMPLES_UI_TILE_TILE_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 VersionMode version_mode = VersionMode::kAny; | 36 VersionMode version_mode = VersionMode::kAny; |
37 CombinatorMode combinator_mode = CombinatorMode::kPrune; | 37 CombinatorMode combinator_mode = CombinatorMode::kPrune; |
38 OrientationMode orientation_mode = OrientationMode::kHorizontal; | 38 OrientationMode orientation_mode = OrientationMode::kHorizontal; |
39 | 39 |
40 std::vector<std::string> view_urls; | 40 std::vector<std::string> view_urls; |
41 }; | 41 }; |
42 | 42 |
43 class TileView : public mojo::ui::BaseView { | 43 class TileView : public mojo::ui::BaseView { |
44 public: | 44 public: |
45 TileView(mojo::ApplicationImpl* app_impl_, | 45 TileView(mojo::InterfaceHandle<mojo::ApplicationConnector> app_connector, |
46 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, | 46 mojo::InterfaceRequest<mojo::ui::ViewOwner> view_owner_request, |
47 const TileParams& tile_params); | 47 const TileParams& tile_params); |
48 | 48 |
49 ~TileView() override; | 49 ~TileView() override; |
50 | 50 |
51 private: | 51 private: |
52 struct ViewData { | 52 struct ViewData { |
53 explicit ViewData(const std::string& url, uint32_t key); | 53 explicit ViewData(const std::string& url, uint32_t key); |
54 ~ViewData(); | 54 ~ViewData(); |
55 | 55 |
(...skipping 20 matching lines...) Expand all Loading... |
76 | 76 |
77 TileParams params_; | 77 TileParams params_; |
78 std::map<uint32_t, std::unique_ptr<ViewData>> views_; | 78 std::map<uint32_t, std::unique_ptr<ViewData>> views_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(TileView); | 80 DISALLOW_COPY_AND_ASSIGN(TileView); |
81 }; | 81 }; |
82 | 82 |
83 } // namespace examples | 83 } // namespace examples |
84 | 84 |
85 #endif // EXAMPLES_UI_TILE_TILE_VIEW_H_ | 85 #endif // EXAMPLES_UI_TILE_TILE_VIEW_H_ |
OLD | NEW |