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

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

Issue 772893004: Adds constants and runner for animations (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge Created 6 years 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
(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 "services/view_manager/server_view_delegate.h"
10
11 namespace mojo {
12 namespace service {
13
14 class TestServerViewDelegate : public ServerViewDelegate {
15 public:
16 TestServerViewDelegate();
17 ~TestServerViewDelegate() override;
18
19 private:
20 // ServerViewDelegate:
21 void OnWillDestroyView(ServerView* view) override;
22 void OnViewDestroyed(const ServerView* view) override;
23 void OnWillChangeViewHierarchy(ServerView* view,
24 ServerView* new_parent,
25 ServerView* old_parent) override;
26 void OnViewHierarchyChanged(const ServerView* view,
27 const ServerView* new_parent,
28 const ServerView* old_parent) override;
29 void OnViewBoundsChanged(const ServerView* view,
30 const gfx::Rect& old_bounds,
31 const gfx::Rect& new_bounds) override;
32 void OnViewSurfaceIdChanged(const ServerView* view) override;
33 void OnViewReordered(const ServerView* view,
34 const ServerView* relative,
35 OrderDirection direction) override;
36 void OnWillChangeViewVisibility(ServerView* view) override;
37 void OnViewSharedPropertyChanged(
38 const ServerView* view,
39 const std::string& name,
40 const std::vector<uint8_t>* new_data) override;
41 void OnScheduleViewPaint(const ServerView* view) override;
42
43 DISALLOW_COPY_AND_ASSIGN(TestServerViewDelegate);
44 };
45
46 } // namespace service
47 } // namespace mojo
48
49 #endif // SERVICES_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/view_manager/server_view_delegate.h ('k') | services/view_manager/test_server_view_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698