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/examples/wm_flow/wm/frame_controller.h" | 5 #include "examples/wm_flow/wm/frame_controller.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "mojo/converters/geometry/geometry_type_converters.h" | 9 #include "mojo/converters/geometry/geometry_type_converters.h" |
10 #include "mojo/services/public/cpp/view_manager/view.h" | 10 #include "mojo/services/public/cpp/view_manager/view.h" |
11 #include "mojo/services/window_manager/window_manager_app.h" | 11 #include "mojo/services/window_manager/window_manager_app.h" |
12 #include "mojo/views/native_widget_view_manager.h" | 12 #include "mojo/views/native_widget_view_manager.h" |
13 #include "ui/views/background.h" | 13 #include "ui/views/background.h" |
14 #include "ui/views/controls/button/label_button.h" | 14 #include "ui/views/controls/button/label_button.h" |
15 #include "ui/views/layout/layout_manager.h" | 15 #include "ui/views/layout/layout_manager.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 activation_client_->ActivateWindow(window); | 150 activation_client_->ActivateWindow(window); |
151 } | 151 } |
152 | 152 |
153 //////////////////////////////////////////////////////////////////////////////// | 153 //////////////////////////////////////////////////////////////////////////////// |
154 // FrameController, mojo::ViewObserver implementation: | 154 // FrameController, mojo::ViewObserver implementation: |
155 | 155 |
156 void FrameController::OnViewDestroyed(mojo::View* view) { | 156 void FrameController::OnViewDestroyed(mojo::View* view) { |
157 view_->RemoveObserver(this); | 157 view_->RemoveObserver(this); |
158 delete this; | 158 delete this; |
159 } | 159 } |
OLD | NEW |