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

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: Merge/Resolve. 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
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browser_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 gfx::Rect bounds = native_panel_->GetPanelBounds(); 183 gfx::Rect bounds = native_panel_->GetPanelBounds();
184 return bounds.x() <= mouse_x && mouse_x <= bounds.right() && 184 return bounds.x() <= mouse_x && mouse_x <= bounds.right() &&
185 mouse_y >= bounds.y(); 185 mouse_y >= bounds.y();
186 } 186 }
187 187
188 bool Panel::IsDrawingAttention() const { 188 bool Panel::IsDrawingAttention() const {
189 return native_panel_->IsDrawingAttention(); 189 return native_panel_->IsDrawingAttention();
190 } 190 }
191 191
192 void Panel::FullScreenModeChanged(bool is_full_screen) {
193 native_panel_->FullScreenModeChanged(is_full_screen);
194 }
195
192 void Panel::Show() { 196 void Panel::Show() {
193 native_panel_->ShowPanel(); 197 native_panel_->ShowPanel();
194 } 198 }
195 199
196 void Panel::ShowInactive() { 200 void Panel::ShowInactive() {
197 native_panel_->ShowPanelInactive(); 201 native_panel_->ShowPanelInactive();
198 } 202 }
199 203
200 void Panel::SetBounds(const gfx::Rect& bounds) { 204 void Panel::SetBounds(const gfx::Rect& bounds) {
201 // Ignore any SetBounds requests since the bounds are completely controlled 205 // Ignore any SetBounds requests since the bounds are completely controlled
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 if (auto_resizable_) { 654 if (auto_resizable_) {
651 RenderViewHost* render_view_host = GetRenderViewHost(); 655 RenderViewHost* render_view_host = GetRenderViewHost();
652 if (render_view_host) 656 if (render_view_host)
653 RequestRenderViewHostToDisableScrollbars(render_view_host); 657 RequestRenderViewHostToDisableScrollbars(render_view_host);
654 } 658 }
655 } 659 }
656 660
657 void Panel::DestroyBrowser() { 661 void Panel::DestroyBrowser() {
658 native_panel_->DestroyPanelBrowser(); 662 native_panel_->DestroyPanelBrowser();
659 } 663 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698