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 SERVICES_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ | 5 #ifndef SERVICES_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ |
6 #define SERVICES_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ | 6 #define SERVICES_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "mojo/services/view_manager/server_view_delegate.h" | 9 #include "mojo/services/view_manager/server_view_delegate.h" |
10 | 10 |
11 namespace view_manager { | 11 namespace view_manager { |
12 | 12 |
13 class TestServerViewDelegate : public ServerViewDelegate { | 13 class TestServerViewDelegate : public ServerViewDelegate { |
14 public: | 14 public: |
15 TestServerViewDelegate(); | 15 TestServerViewDelegate(); |
16 ~TestServerViewDelegate() override; | 16 ~TestServerViewDelegate() override; |
17 | 17 |
18 private: | 18 private: |
19 // ServerViewDelegate: | 19 // ServerViewDelegate: |
20 void OnWillDestroyView(ServerView* view) override; | 20 void PrepareToDestroyView(ServerView* view) override; |
21 void OnViewDestroyed(const ServerView* view) override; | 21 void PrepareToChangeViewHierarchy(ServerView* view, |
22 void OnWillChangeViewHierarchy(ServerView* view, | 22 ServerView* new_parent, |
23 ServerView* new_parent, | 23 ServerView* old_parent) override; |
24 ServerView* old_parent) override; | 24 void PrepareToChangeViewVisibility(ServerView* view) override; |
25 void OnViewHierarchyChanged(const ServerView* view, | |
26 const ServerView* new_parent, | |
27 const ServerView* old_parent) override; | |
28 void OnViewBoundsChanged(const ServerView* view, | |
29 const gfx::Rect& old_bounds, | |
30 const gfx::Rect& new_bounds) override; | |
31 void OnViewSurfaceIdChanged(const ServerView* view) override; | |
32 void OnViewReordered(const ServerView* view, | |
33 const ServerView* relative, | |
34 mojo::OrderDirection direction) override; | |
35 void OnWillChangeViewVisibility(ServerView* view) override; | |
36 void OnViewSharedPropertyChanged( | |
37 const ServerView* view, | |
38 const std::string& name, | |
39 const std::vector<uint8_t>* new_data) override; | |
40 void OnScheduleViewPaint(const ServerView* view) override; | 25 void OnScheduleViewPaint(const ServerView* view) override; |
41 | 26 |
42 DISALLOW_COPY_AND_ASSIGN(TestServerViewDelegate); | 27 DISALLOW_COPY_AND_ASSIGN(TestServerViewDelegate); |
43 }; | 28 }; |
44 | 29 |
45 } // namespace view_manager | 30 } // namespace view_manager |
46 | 31 |
47 #endif // SERVICES_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ | 32 #endif // SERVICES_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ |
OLD | NEW |