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

Side by Side Diff: chrome/browser/ui/panels/panel.cc

Issue 8686012: Make panels not show on top when there is an app running in full screen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/panels/panel.h" 5 #include "chrome/browser/ui/panels/panel.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/extensions/extension_prefs.h" 8 #include "chrome/browser/extensions/extension_prefs.h"
9 #include "chrome/browser/extensions/extension_service.h" 9 #include "chrome/browser/extensions/extension_service.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 gfx::Rect bounds = native_panel_->GetPanelBounds(); 168 gfx::Rect bounds = native_panel_->GetPanelBounds();
169 return bounds.x() <= mouse_x && mouse_x <= bounds.right() && 169 return bounds.x() <= mouse_x && mouse_x <= bounds.right() &&
170 mouse_y >= bounds.y(); 170 mouse_y >= bounds.y();
171 } 171 }
172 172
173 bool Panel::IsDrawingAttention() const { 173 bool Panel::IsDrawingAttention() const {
174 return native_panel_->IsDrawingAttention(); 174 return native_panel_->IsDrawingAttention();
175 } 175 }
176 176
177 void Panel::FullScreenModeChanged(bool is_full_screen_mode_on) {
178 native_panel_->FullScreenModeChanged(is_full_screen_mode_on);
179 }
180
177 void Panel::Show() { 181 void Panel::Show() {
178 native_panel_->ShowPanel(); 182 native_panel_->ShowPanel();
179 } 183 }
180 184
181 void Panel::ShowInactive() { 185 void Panel::ShowInactive() {
182 native_panel_->ShowPanelInactive(); 186 native_panel_->ShowPanelInactive();
183 } 187 }
184 188
185 void Panel::SetBounds(const gfx::Rect& bounds) { 189 void Panel::SetBounds(const gfx::Rect& bounds) {
186 // Ignore any SetBounds requests since the bounds are completely controlled 190 // Ignore any SetBounds requests since the bounds are completely controlled
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 if (auto_resizable_) { 639 if (auto_resizable_) {
636 RenderViewHost* render_view_host = GetRenderViewHost(); 640 RenderViewHost* render_view_host = GetRenderViewHost();
637 if (render_view_host) 641 if (render_view_host)
638 RequestRenderViewHostToDisableScrollbars(render_view_host); 642 RequestRenderViewHostToDisableScrollbars(render_view_host);
639 } 643 }
640 } 644 }
641 645
642 void Panel::DestroyBrowser() { 646 void Panel::DestroyBrowser() {
643 native_panel_->DestroyPanelBrowser(); 647 native_panel_->DestroyPanelBrowser();
644 } 648 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698