OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "mojo/services/view_manager/server_view.h" | 5 #include "mojo/services/view_manager/server_view.h" |
6 | 6 |
7 #include "mojo/services/view_manager/server_view_delegate.h" | 7 #include "mojo/services/view_manager/server_view_delegate.h" |
8 | 8 |
9 namespace mojo { | 9 namespace mojo { |
10 namespace service { | 10 namespace service { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 111 } |
112 | 112 |
113 void ServerView::SetVisible(bool value) { | 113 void ServerView::SetVisible(bool value) { |
114 if (visible_ == value) | 114 if (visible_ == value) |
115 return; | 115 return; |
116 | 116 |
117 visible_ = value; | 117 visible_ = value; |
118 // TODO(sky): notification, including repaint. | 118 // TODO(sky): notification, including repaint. |
119 } | 119 } |
120 | 120 |
121 void ServerView::SetBitmap(const SkBitmap& bitmap) { | 121 void ServerView::SetSurfaceId(cc::SurfaceId surface_id) { |
122 bitmap_ = bitmap; | 122 surface_id_ = surface_id; |
123 delegate_->OnViewBitmapChanged(this); | 123 delegate_->OnViewSurfaceChanged(this); |
124 } | 124 } |
125 | 125 |
126 void ServerView::RemoveImpl(ServerView* view) { | 126 void ServerView::RemoveImpl(ServerView* view) { |
127 view->parent_ = NULL; | 127 view->parent_ = NULL; |
128 children_.erase(std::find(children_.begin(), children_.end(), view)); | 128 children_.erase(std::find(children_.begin(), children_.end(), view)); |
129 } | 129 } |
130 | 130 |
131 } // namespace service | 131 } // namespace service |
132 } // namespace mojo | 132 } // namespace mojo |
OLD | NEW |