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

Side by Side Diff: ui/aura/root_window.cc

Issue 9515003: Fix the full screen switching browser window dipping below launcher bar issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the issue for managed window mode, add tests. Created 8 years, 9 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 | Annotate | Revision Log
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 "ui/aura/root_window.h" 5 #include "ui/aura/root_window.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 last_mouse_location_ = host_->QueryMouseLocation(); 108 last_mouse_location_ = host_->QueryMouseLocation();
109 synthesize_mouse_move_ = false; 109 synthesize_mouse_move_ = false;
110 } 110 }
111 111
112 gfx::Size RootWindow::GetHostSize() const { 112 gfx::Size RootWindow::GetHostSize() const {
113 gfx::Rect rect(host_->GetSize()); 113 gfx::Rect rect(host_->GetSize());
114 layer()->transform().TransformRect(&rect); 114 layer()->transform().TransformRect(&rect);
115 return rect.size(); 115 return rect.size();
116 } 116 }
117 117
118 void RootWindow::SetScreenWorkAreaInsets(const gfx::Insets& insets) {
119 screen_->set_work_area_insets(insets);
sky 2012/03/01 01:43:19 Don't do anything if insets are the same.
jennyz 2012/03/01 18:27:45 Done.
120 FOR_EACH_OBSERVER(RootWindowObserver, observers_,
121 OnScreenWorkAreaInsetsChanged());
122 }
123
118 void RootWindow::SetCursor(gfx::NativeCursor cursor) { 124 void RootWindow::SetCursor(gfx::NativeCursor cursor) {
119 last_cursor_ = cursor; 125 last_cursor_ = cursor;
120 // A lot of code seems to depend on NULL cursors actually showing an arrow, 126 // A lot of code seems to depend on NULL cursors actually showing an arrow,
121 // so just pass everything along to the host. 127 // so just pass everything along to the host.
122 host_->SetCursor(cursor); 128 host_->SetCursor(cursor);
123 } 129 }
124 130
125 void RootWindow::ShowCursor(bool show) { 131 void RootWindow::ShowCursor(bool show) {
126 cursor_shown_ = show; 132 cursor_shown_ = show;
127 host_->ShowCursor(show); 133 host_->ShowCursor(show);
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 // is currently broken. See/ crbug.com/107931. 837 // is currently broken. See/ crbug.com/107931.
832 MouseEvent event(ui::ET_MOUSE_MOVED, 838 MouseEvent event(ui::ET_MOUSE_MOVED,
833 orig_mouse_location, 839 orig_mouse_location,
834 orig_mouse_location, 840 orig_mouse_location,
835 ui::EF_IS_SYNTHESIZED); 841 ui::EF_IS_SYNTHESIZED);
836 DispatchMouseEvent(&event); 842 DispatchMouseEvent(&event);
837 #endif 843 #endif
838 } 844 }
839 845
840 } // namespace aura 846 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698