| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 2409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2420 } | 2420 } |
| 2421 | 2421 |
| 2422 void RenderWidgetHostViewAura::CreateAuraWindow() { | 2422 void RenderWidgetHostViewAura::CreateAuraWindow() { |
| 2423 DCHECK(!window_); | 2423 DCHECK(!window_); |
| 2424 window_ = new aura::Window(this); | 2424 window_ = new aura::Window(this); |
| 2425 window_observer_.reset(new WindowObserver(this)); | 2425 window_observer_.reset(new WindowObserver(this)); |
| 2426 | 2426 |
| 2427 aura::client::SetTooltipText(window_, &tooltip_); | 2427 aura::client::SetTooltipText(window_, &tooltip_); |
| 2428 aura::client::SetActivationDelegate(window_, this); | 2428 aura::client::SetActivationDelegate(window_, this); |
| 2429 aura::client::SetFocusChangeObserver(window_, this); | 2429 aura::client::SetFocusChangeObserver(window_, this); |
| 2430 window_->set_layer_owner_delegate(delegated_frame_host_.get()); | |
| 2431 display::Screen::GetScreen()->AddObserver(this); | 2430 display::Screen::GetScreen()->AddObserver(this); |
| 2432 } | 2431 } |
| 2433 | 2432 |
| 2434 void RenderWidgetHostViewAura::UpdateCursorIfOverSelf() { | 2433 void RenderWidgetHostViewAura::UpdateCursorIfOverSelf() { |
| 2435 if (host_->GetProcess()->FastShutdownStarted()) | 2434 if (host_->GetProcess()->FastShutdownStarted()) |
| 2436 return; | 2435 return; |
| 2437 | 2436 |
| 2438 aura::Window* root_window = window_->GetRootWindow(); | 2437 aura::Window* root_window = window_->GetRootWindow(); |
| 2439 if (!root_window) | 2438 if (!root_window) |
| 2440 return; | 2439 return; |
| (...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3076 ->GetTextSelection(focused_view) | 3075 ->GetTextSelection(focused_view) |
| 3077 ->GetSelectedText(&selected_text)) { | 3076 ->GetSelectedText(&selected_text)) { |
| 3078 // Set the CLIPBOARD_TYPE_SELECTION to the ui::Clipboard. | 3077 // Set the CLIPBOARD_TYPE_SELECTION to the ui::Clipboard. |
| 3079 ui::ScopedClipboardWriter clipboard_writer(ui::CLIPBOARD_TYPE_SELECTION); | 3078 ui::ScopedClipboardWriter clipboard_writer(ui::CLIPBOARD_TYPE_SELECTION); |
| 3080 clipboard_writer.WriteText(selected_text); | 3079 clipboard_writer.WriteText(selected_text); |
| 3081 } | 3080 } |
| 3082 #endif // defined(USE_X11) && !defined(OS_CHROMEOS) | 3081 #endif // defined(USE_X11) && !defined(OS_CHROMEOS) |
| 3083 } | 3082 } |
| 3084 | 3083 |
| 3085 } // namespace content | 3084 } // namespace content |
| OLD | NEW |