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

Side by Side Diff: mojo/services/view_manager/test_server_view_delegate.h

Issue 1092033003: Pulls display related changes from mojo to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
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_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/server_view_observer.h ('k') | mojo/services/view_manager/test_server_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698