Use unique image for lofi testing
[chromium-blink-merge.git] / components / view_manager / server_view_drawn_tracker_observer.h
blob3d0f2bf41f504ee6671e8339235b712e5b3ea0e8
1 // Copyright 2015 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_SERVER_VIEW_DRAWN_TRACKER_OBSERVER_H_
6 #define COMPONENTS_VIEW_MANAGER_SERVER_VIEW_DRAWN_TRACKER_OBSERVER_H_
8 namespace view_manager {
10 class ServerView;
12 class ServerViewDrawnTrackerObserver {
13 public:
14 // Invoked when the drawn state changes. If |is_drawn| is false |ancestor|
15 // identifies where the change occurred. In the case of a remove |ancestor| is
16 // the parent of the view that was removed. In the case of a visibility change
17 // |ancestor| is the parent of the view whose visibility changed.
18 virtual void OnDrawnStateChanged(ServerView* ancestor,
19 ServerView* view,
20 bool is_drawn) {}
22 protected:
23 virtual ~ServerViewDrawnTrackerObserver() {}
26 } // namespace view_manager
28 #endif // COMPONENTS_VIEW_MANAGER_SERVER_VIEW_DRAWN_TRACKER_OBSERVER_H_