summaryrefslogtreecommitdiffstats
path: root/components/view_manager/test_server_view_delegate.cc
blob: fb4c37a18370ead20dd77cba526fa3c139ebd583 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/view_manager/test_server_view_delegate.h"
#include "components/view_manager/server_view.h"

namespace view_manager {

TestServerViewDelegate::TestServerViewDelegate() : root_view_(nullptr) {
}

TestServerViewDelegate::~TestServerViewDelegate() {
}

void TestServerViewDelegate::PrepareToDestroyView(ServerView* view) {
}

void TestServerViewDelegate::PrepareToChangeViewHierarchy(
    ServerView* view,
    ServerView* new_parent,
    ServerView* old_parent) {
}

void TestServerViewDelegate::PrepareToChangeViewVisibility(ServerView* view) {
}

void TestServerViewDelegate::OnScheduleViewPaint(const ServerView* view) {
}

const ServerView* TestServerViewDelegate::GetRootView(
    const ServerView* view) const {
  return root_view_;
}

}  // namespace view_manager