OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ |
| 6 #define SERVICES_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "mojo/services/view_manager/server_view_delegate.h" |
| 10 |
| 11 namespace view_manager { |
| 12 |
| 13 class TestServerViewDelegate : public ServerViewDelegate { |
| 14 public: |
| 15 TestServerViewDelegate(); |
| 16 ~TestServerViewDelegate() override; |
| 17 |
| 18 private: |
| 19 // ServerViewDelegate: |
| 20 void OnWillDestroyView(ServerView* view) override; |
| 21 void OnViewDestroyed(const ServerView* view) override; |
| 22 void OnWillChangeViewHierarchy(ServerView* view, |
| 23 ServerView* new_parent, |
| 24 ServerView* old_parent) 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; |
| 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(TestServerViewDelegate); |
| 43 }; |
| 44 |
| 45 } // namespace view_manager |
| 46 |
| 47 #endif // SERVICES_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_ |
OLD | NEW |