| OLD | NEW |
| 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 "chrome/browser/ui/views/ash/panel_view_aura.h" | 5 #include "chrome/browser/ui/views/ash/panel_view_aura.h" |
| 6 | 6 |
| 7 #include "ash/wm/panel_frame_view.h" | 7 #include "ash/wm/panel_frame_view.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" | 9 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" |
| 10 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 10 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 } | 380 } |
| 381 | 381 |
| 382 bool PanelViewAura::IsMinimized() const { | 382 bool PanelViewAura::IsMinimized() const { |
| 383 return GetWidget()->IsMinimized(); | 383 return GetWidget()->IsMinimized(); |
| 384 } | 384 } |
| 385 | 385 |
| 386 bool PanelViewAura::IsFullscreen() const { | 386 bool PanelViewAura::IsFullscreen() const { |
| 387 return GetWidget()->IsFullscreen(); | 387 return GetWidget()->IsFullscreen(); |
| 388 } | 388 } |
| 389 | 389 |
| 390 gfx::NativeWindow PanelViewAura::GetNativeWindow() { |
| 391 return GetWidget()->GetNativeWindow(); |
| 392 } |
| 393 |
| 390 gfx::Rect PanelViewAura::GetRestoredBounds() const { | 394 gfx::Rect PanelViewAura::GetRestoredBounds() const { |
| 391 return GetWidget()->GetRestoredBounds(); | 395 return GetWidget()->GetRestoredBounds(); |
| 392 } | 396 } |
| 393 | 397 |
| 394 gfx::Rect PanelViewAura::GetBounds() const { | 398 gfx::Rect PanelViewAura::GetBounds() const { |
| 395 return GetWidget()->GetWindowScreenBounds(); | 399 return GetWidget()->GetWindowScreenBounds(); |
| 396 } | 400 } |
| 397 | 401 |
| 398 void PanelViewAura::Show() { | 402 void PanelViewAura::Show() { |
| 399 GetWidget()->Show(); | 403 GetWidget()->Show(); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 } | 444 } |
| 441 | 445 |
| 442 void PanelViewAura::FlashFrame(bool flash) { | 446 void PanelViewAura::FlashFrame(bool flash) { |
| 443 // TODO(stevenjb): Implement | 447 // TODO(stevenjb): Implement |
| 444 NOTIMPLEMENTED(); | 448 NOTIMPLEMENTED(); |
| 445 } | 449 } |
| 446 | 450 |
| 447 bool PanelViewAura::IsAlwaysOnTop() const { | 451 bool PanelViewAura::IsAlwaysOnTop() const { |
| 448 return true; | 452 return true; |
| 449 } | 453 } |
| OLD | NEW |