| 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 "content/browser/renderer_host/render_widget_host_view_mus.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_mus.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "content/browser/renderer_host/render_process_host_impl.h" | 10 #include "content/browser/renderer_host/render_process_host_impl.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 129 } |
| 130 | 130 |
| 131 void RenderWidgetHostViewMus::Destroy() { | 131 void RenderWidgetHostViewMus::Destroy() { |
| 132 delete aura_window_; | 132 delete aura_window_; |
| 133 } | 133 } |
| 134 | 134 |
| 135 gfx::Size RenderWidgetHostViewMus::GetPhysicalBackingSize() const { | 135 gfx::Size RenderWidgetHostViewMus::GetPhysicalBackingSize() const { |
| 136 return RenderWidgetHostViewBase::GetPhysicalBackingSize(); | 136 return RenderWidgetHostViewBase::GetPhysicalBackingSize(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 base::string16 RenderWidgetHostViewMus::GetSelectedText() const { | |
| 140 NOTIMPLEMENTED(); | |
| 141 return base::string16(); | |
| 142 } | |
| 143 | |
| 144 void RenderWidgetHostViewMus::SetTooltipText( | 139 void RenderWidgetHostViewMus::SetTooltipText( |
| 145 const base::string16& tooltip_text) { | 140 const base::string16& tooltip_text) { |
| 146 // TOOD(fsamuel): Ask window manager for tooltip? | 141 // TOOD(fsamuel): Ask window manager for tooltip? |
| 147 } | 142 } |
| 148 | 143 |
| 149 void RenderWidgetHostViewMus::InitAsChild(gfx::NativeView parent_view) { | 144 void RenderWidgetHostViewMus::InitAsChild(gfx::NativeView parent_view) { |
| 150 aura_window_ = new aura::Window(nullptr); | 145 aura_window_ = new aura::Window(nullptr); |
| 151 aura_window_->SetType(ui::wm::WINDOW_TYPE_CONTROL); | 146 aura_window_->SetType(ui::wm::WINDOW_TYPE_CONTROL); |
| 152 aura_window_->Init(ui::LAYER_SOLID_COLOR); | 147 aura_window_->Init(ui::LAYER_SOLID_COLOR); |
| 153 aura_window_->SetName("RenderWidgetHostViewMus"); | 148 aura_window_->SetName("RenderWidgetHostViewMus"); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 | 300 |
| 306 void RenderWidgetHostViewMus::OnWindowInputEvent( | 301 void RenderWidgetHostViewMus::OnWindowInputEvent( |
| 307 ui::Window* window, | 302 ui::Window* window, |
| 308 const ui::Event& event, | 303 const ui::Event& event, |
| 309 std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>>* | 304 std::unique_ptr<base::Callback<void(ui::mojom::EventResult)>>* |
| 310 ack_callback) { | 305 ack_callback) { |
| 311 // TODO(sad): Dispatch |event| to the RenderWidgetHost. | 306 // TODO(sad): Dispatch |event| to the RenderWidgetHost. |
| 312 } | 307 } |
| 313 | 308 |
| 314 } // namespace content | 309 } // namespace content |
| OLD | NEW |