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

Side by Side Diff: examples/ui/tile/tile_view.h

Issue 1991853003: Make BaseView et al. take an ApplicationConnector instead of an ApplicationImpl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh Created 4 years, 7 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 | « examples/ui/tile/tile_app.cc ('k') | examples/ui/tile/tile_view.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 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
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
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_
OLDNEW
« no previous file with comments | « examples/ui/tile/tile_app.cc ('k') | examples/ui/tile/tile_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698