Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 2383263002: Generalize layer mirroring for phantom windows (Closed)
Patch Set: Rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after
2424 } 2424 }
2425 2425
2426 void RenderWidgetHostViewAura::CreateAuraWindow() { 2426 void RenderWidgetHostViewAura::CreateAuraWindow() {
2427 DCHECK(!window_); 2427 DCHECK(!window_);
2428 window_ = new aura::Window(this); 2428 window_ = new aura::Window(this);
2429 window_observer_.reset(new WindowObserver(this)); 2429 window_observer_.reset(new WindowObserver(this));
2430 2430
2431 aura::client::SetTooltipText(window_, &tooltip_); 2431 aura::client::SetTooltipText(window_, &tooltip_);
2432 aura::client::SetActivationDelegate(window_, this); 2432 aura::client::SetActivationDelegate(window_, this);
2433 aura::client::SetFocusChangeObserver(window_, this); 2433 aura::client::SetFocusChangeObserver(window_, this);
2434 window_->set_layer_owner_delegate(delegated_frame_host_.get());
2435 display::Screen::GetScreen()->AddObserver(this); 2434 display::Screen::GetScreen()->AddObserver(this);
2436 } 2435 }
2437 2436
2438 void RenderWidgetHostViewAura::UpdateCursorIfOverSelf() { 2437 void RenderWidgetHostViewAura::UpdateCursorIfOverSelf() {
2439 if (host_->GetProcess()->FastShutdownStarted()) 2438 if (host_->GetProcess()->FastShutdownStarted())
2440 return; 2439 return;
2441 2440
2442 aura::Window* root_window = window_->GetRootWindow(); 2441 aura::Window* root_window = window_->GetRootWindow();
2443 if (!root_window) 2442 if (!root_window)
2444 return; 2443 return;
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
3080 ->GetTextSelection(focused_view) 3079 ->GetTextSelection(focused_view)
3081 ->GetSelectedText(&selected_text)) { 3080 ->GetSelectedText(&selected_text)) {
3082 // Set the CLIPBOARD_TYPE_SELECTION to the ui::Clipboard. 3081 // Set the CLIPBOARD_TYPE_SELECTION to the ui::Clipboard.
3083 ui::ScopedClipboardWriter clipboard_writer(ui::CLIPBOARD_TYPE_SELECTION); 3082 ui::ScopedClipboardWriter clipboard_writer(ui::CLIPBOARD_TYPE_SELECTION);
3084 clipboard_writer.WriteText(selected_text); 3083 clipboard_writer.WriteText(selected_text);
3085 } 3084 }
3086 #endif // defined(USE_X11) && !defined(OS_CHROMEOS) 3085 #endif // defined(USE_X11) && !defined(OS_CHROMEOS)
3087 } 3086 }
3088 3087
3089 } // namespace content 3088 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698