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

Unified Diff: ui/aura/window_tree_host_x11.cc

Issue 184903003: Window ownership -> WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/window_tree_host_win.cc ('k') | ui/keyboard/keyboard_ui_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host_x11.cc
diff --git a/ui/aura/window_tree_host_x11.cc b/ui/aura/window_tree_host_x11.cc
index 5f0c6ac614d9e6998fe816ef0334d3376b393cd1..aa8d0c2acea6365177f096fb8255b6e25916ad44 100644
--- a/ui/aura/window_tree_host_x11.cc
+++ b/ui/aura/window_tree_host_x11.cc
@@ -363,7 +363,7 @@ uint32_t WindowTreeHostX11::Dispatch(const base::NativeEvent& event) {
switch (xev->type) {
case EnterNotify: {
- aura::Window* root_window = GetDispatcher()->window();
+ aura::Window* root_window = window();
client::CursorClient* cursor_client =
client::GetCursorClient(root_window);
if (cursor_client) {
@@ -635,7 +635,7 @@ void WindowTreeHostX11::ReleaseCapture() {
bool WindowTreeHostX11::QueryMouseLocation(gfx::Point* location_return) {
client::CursorClient* cursor_client =
- client::GetCursorClient(GetDispatcher()->window());
+ client::GetCursorClient(window());
if (cursor_client && !cursor_client->IsMouseEventsEnabled()) {
*location_return = gfx::Point(0, 0);
return false;
@@ -767,7 +767,7 @@ void WindowTreeHostX11::OnWindowInitialized(Window* window) {
}
void WindowTreeHostX11::OnRootWindowInitialized(
- WindowEventDispatcher* dispatcher) {
+ WindowEventDispatcher* d) {
// UpdateIsInternalDisplay relies on:
// 1. delegate_ pointing to WindowEventDispatcher - available after
// SetDelegate.
@@ -775,7 +775,7 @@ void WindowTreeHostX11::OnRootWindowInitialized(
// WED::Init is called.
// (set in DisplayManager::CreateRootWindowForDisplay)
// Ready when NotifyRootWindowInitialized is called from WED::Init.
- if (!delegate_ || dispatcher != GetDispatcher())
+ if (!delegate_ || d != dispatcher())
return;
UpdateIsInternalDisplay();
@@ -930,7 +930,7 @@ void WindowTreeHostX11::SetCursorInternal(gfx::NativeCursor cursor) {
void WindowTreeHostX11::TranslateAndDispatchMouseEvent(
ui::MouseEvent* event) {
- Window* root_window = GetDispatcher()->window();
+ Window* root_window = window();
client::ScreenPositionClient* screen_position_client =
client::GetScreenPositionClient(root_window);
gfx::Rect local(bounds_.size());
@@ -951,7 +951,7 @@ void WindowTreeHostX11::TranslateAndDispatchMouseEvent(
}
void WindowTreeHostX11::UpdateIsInternalDisplay() {
- Window* root_window = GetDispatcher()->window();
+ Window* root_window = window();
gfx::Screen* screen = gfx::Screen::GetScreenFor(root_window);
gfx::Display display = screen->GetDisplayNearestWindow(root_window);
is_internal_display_ = display.IsInternal();
« no previous file with comments | « ui/aura/window_tree_host_win.cc ('k') | ui/keyboard/keyboard_ui_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698