| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 "mandoline/ui/aura/native_widget_view_manager.h" | 5 #include "ui/views/mus/native_widget_view_manager.h" |
| 6 | 6 |
| 7 #include "components/mus/public/cpp/view.h" | 7 #include "components/mus/public/cpp/view.h" |
| 8 #include "mandoline/ui/aura/input_method_mandoline.h" | |
| 9 #include "mandoline/ui/aura/window_tree_host_mojo.h" | |
| 10 #include "mojo/converters/geometry/geometry_type_converters.h" | 8 #include "mojo/converters/geometry/geometry_type_converters.h" |
| 11 #include "mojo/converters/input_events/input_events_type_converters.h" | 9 #include "mojo/converters/input_events/input_events_type_converters.h" |
| 12 #include "ui/aura/client/default_capture_client.h" | 10 #include "ui/aura/client/default_capture_client.h" |
| 13 #include "ui/aura/window.h" | 11 #include "ui/aura/window.h" |
| 14 #include "ui/aura/window_event_dispatcher.h" | 12 #include "ui/aura/window_event_dispatcher.h" |
| 15 #include "ui/base/ime/input_method_delegate.h" | 13 #include "ui/base/ime/input_method_delegate.h" |
| 14 #include "ui/views/mus/input_method_mus.h" |
| 15 #include "ui/views/mus/window_tree_host_mus.h" |
| 16 #include "ui/wm/core/base_focus_rules.h" | 16 #include "ui/wm/core/base_focus_rules.h" |
| 17 #include "ui/wm/core/capture_controller.h" | 17 #include "ui/wm/core/capture_controller.h" |
| 18 #include "ui/wm/core/focus_controller.h" | 18 #include "ui/wm/core/focus_controller.h" |
| 19 | 19 |
| 20 namespace mandoline { | 20 namespace views { |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 // TODO: figure out what this should be. | 23 // TODO: figure out what this should be. |
| 24 class FocusRulesImpl : public wm::BaseFocusRules { | 24 class FocusRulesImpl : public wm::BaseFocusRules { |
| 25 public: | 25 public: |
| 26 FocusRulesImpl() {} | 26 FocusRulesImpl() {} |
| 27 ~FocusRulesImpl() override {} | 27 ~FocusRulesImpl() override {} |
| 28 | 28 |
| 29 bool SupportsChildActivation(aura::Window* window) const override { | 29 bool SupportsChildActivation(aura::Window* window) const override { |
| 30 return true; | 30 return true; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 } | 123 } |
| 124 | 124 |
| 125 void NativeWidgetViewManager::OnWindowVisibilityChanged(aura::Window* window, | 125 void NativeWidgetViewManager::OnWindowVisibilityChanged(aura::Window* window, |
| 126 bool visible) { | 126 bool visible) { |
| 127 view_->SetVisible(visible); | 127 view_->SetVisible(visible); |
| 128 // NOTE: We could also update aura::Window's visibility when the View's | 128 // NOTE: We could also update aura::Window's visibility when the View's |
| 129 // visibility changes, but this code isn't going to be around for very long so | 129 // visibility changes, but this code isn't going to be around for very long so |
| 130 // I'm not bothering. | 130 // I'm not bothering. |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace mandoline | 133 } // namespace views |
| OLD | NEW |