| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |