Add a stub __cxa_demangle to disable LLVM's demangler.
[chromium-blink-merge.git] / components / view_manager / test_server_view_delegate.h
blob85186d8749bf0740f1feeeea7f6eb14b20ba0bd7
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.
5 #ifndef COMPONENTS_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_
6 #define COMPONENTS_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_
8 #include "base/basictypes.h"
9 #include "components/view_manager/server_view_delegate.h"
11 namespace view_manager {
13 class TestServerViewDelegate : public ServerViewDelegate {
14 public:
15 TestServerViewDelegate();
16 ~TestServerViewDelegate() override;
18 void set_root_view(const ServerView* view) { root_view_ = view; }
19 private:
20 // ServerViewDelegate:
21 void PrepareToDestroyView(ServerView* view) override;
22 void PrepareToChangeViewHierarchy(ServerView* view,
23 ServerView* new_parent,
24 ServerView* old_parent) override;
25 void PrepareToChangeViewVisibility(ServerView* view) override;
26 void OnScheduleViewPaint(const ServerView* view) override;
27 const ServerView* GetRootView(const ServerView* view) const override;
29 const ServerView* root_view_;
31 DISALLOW_COPY_AND_ASSIGN(TestServerViewDelegate);
34 } // namespace view_manager
36 #endif // COMPONENTS_VIEW_MANAGER_TEST_SERVER_VIEW_DELEGATE_H_