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

Unified Diff: components/mus/server_view_observer.h

Issue 1377493002: mus: move View Manager to components/mus/vm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/mus/server_view_drawn_tracker_unittest.cc ('k') | components/mus/test_change_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/server_view_observer.h
diff --git a/components/mus/server_view_observer.h b/components/mus/server_view_observer.h
deleted file mode 100644
index d744639d7e21d207ea05ef34eaffa6fb9c6fa7c5..0000000000000000000000000000000000000000
--- a/components/mus/server_view_observer.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2015 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_MUS_SERVER_VIEW_OBSERVER_H_
-#define COMPONENTS_MUS_SERVER_VIEW_OBSERVER_H_
-
-#include "components/mus/public/interfaces/mus_constants.mojom.h"
-
-namespace gfx {
-class Rect;
-}
-
-namespace mus {
-class ViewportMetrics;
-}
-
-namespace ui {
-struct TextInputState;
-}
-
-namespace mus {
-
-class ServerView;
-
-// TODO(sky): rename to OnDid and OnWill everywhere.
-class ServerViewObserver {
- public:
- // Invoked when a view is about to be destroyed; before any of the children
- // have been removed and before the view has been removed from its parent.
- virtual void OnWillDestroyView(ServerView* view) {}
-
- // Invoked at the end of the View's destructor (after it has been removed from
- // the hierarchy).
- virtual void OnViewDestroyed(ServerView* view) {}
-
- virtual void OnWillChangeViewHierarchy(ServerView* view,
- ServerView* new_parent,
- ServerView* old_parent) {}
-
- virtual void OnViewHierarchyChanged(ServerView* view,
- ServerView* new_parent,
- ServerView* old_parent) {}
-
- virtual void OnViewBoundsChanged(ServerView* view,
- const gfx::Rect& old_bounds,
- const gfx::Rect& new_bounds) {}
-
- virtual void OnViewReordered(ServerView* view,
- ServerView* relative,
- mojo::OrderDirection direction) {}
-
- virtual void OnWillChangeViewVisibility(ServerView* view) {}
- virtual void OnViewVisibilityChanged(ServerView* view) {}
-
- virtual void OnViewTextInputStateChanged(ServerView* view,
- const ui::TextInputState& state) {}
-
- virtual void OnViewSharedPropertyChanged(
- ServerView* view,
- const std::string& name,
- const std::vector<uint8_t>* new_data) {}
-
- protected:
- virtual ~ServerViewObserver() {}
-};
-
-} // namespace mus
-
-#endif // COMPONENTS_MUS_SERVER_VIEW_OBSERVER_H_
« no previous file with comments | « components/mus/server_view_drawn_tracker_unittest.cc ('k') | components/mus/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698