| Index: components/view_manager/public/cpp/lib/view_private.h
|
| diff --git a/components/view_manager/public/cpp/lib/view_private.h b/components/view_manager/public/cpp/lib/view_private.h
|
| deleted file mode 100644
|
| index a95296f0ce569f3c8c2cd55a2843e31922a9c248..0000000000000000000000000000000000000000
|
| --- a/components/view_manager/public/cpp/lib/view_private.h
|
| +++ /dev/null
|
| @@ -1,72 +0,0 @@
|
| -// 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.
|
| -
|
| -#ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_
|
| -#define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_
|
| -
|
| -#include "components/view_manager/public/cpp/view.h"
|
| -
|
| -namespace mojo {
|
| -
|
| -// This class is a friend of a View and contains functions to mutate internal
|
| -// state of View.
|
| -class ViewPrivate {
|
| - public:
|
| - explicit ViewPrivate(View* view);
|
| - ~ViewPrivate();
|
| -
|
| - // Creates and returns a new View. Caller owns the return value.
|
| - static View* LocalCreate();
|
| -
|
| - base::ObserverList<ViewObserver>* observers() { return &view_->observers_; }
|
| -
|
| - void ClearParent() { view_->parent_ = NULL; }
|
| -
|
| - void set_visible(bool visible) { view_->visible_ = visible; }
|
| -
|
| - void set_drawn(bool drawn) { view_->drawn_ = drawn; }
|
| -
|
| - void set_id(Id id) { view_->id_ = id; }
|
| -
|
| - void set_connection(ViewTreeConnection* connection) {
|
| - view_->connection_ = connection;
|
| - }
|
| -
|
| - void set_properties(const std::map<std::string, std::vector<uint8_t>>& data) {
|
| - view_->properties_ = data;
|
| - }
|
| -
|
| - void LocalSetViewportMetrics(const ViewportMetrics& old_metrics,
|
| - const ViewportMetrics& new_metrics) {
|
| - view_->LocalSetViewportMetrics(new_metrics, new_metrics);
|
| - }
|
| -
|
| - void LocalDestroy() {
|
| - view_->LocalDestroy();
|
| - }
|
| - void LocalAddChild(View* child) {
|
| - view_->LocalAddChild(child);
|
| - }
|
| - void LocalRemoveChild(View* child) {
|
| - view_->LocalRemoveChild(child);
|
| - }
|
| - void LocalReorder(View* relative, OrderDirection direction) {
|
| - view_->LocalReorder(relative, direction);
|
| - }
|
| - void LocalSetBounds(const Rect& old_bounds,
|
| - const Rect& new_bounds) {
|
| - view_->LocalSetBounds(old_bounds, new_bounds);
|
| - }
|
| - void LocalSetDrawn(bool drawn) { view_->LocalSetDrawn(drawn); }
|
| - void LocalSetVisible(bool visible) { view_->LocalSetVisible(visible); }
|
| -
|
| - private:
|
| - View* view_;
|
| -
|
| - MOJO_DISALLOW_COPY_AND_ASSIGN(ViewPrivate);
|
| -};
|
| -
|
| -} // namespace mojo
|
| -
|
| -#endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_LIB_VIEW_PRIVATE_H_
|
|
|