Home | History | Annotate | Download | only in panels

Lines Matching refs:Panel

5 #include "chrome/browser/ui/panels/panel.h"
50 PanelExtensionWindowController(Panel* panel, Profile* profile);
67 Panel* panel_; // Weak pointer. Owns us.
72 Panel* panel, Profile* profile)
73 : extensions::WindowController(panel, profile),
74 panel_(panel) {
155 Panel::~Panel() {
157 // Invoked by native panel destructor. Do not access native_panel_ here.
161 PanelManager* Panel::manager() const {
165 const std::string Panel::extension_id() const {
169 CommandUpdater* Panel::command_updater() {
173 Profile* Panel::profile() const {
177 const extensions::Extension* Panel::GetExtension() const {
185 content::WebContents* Panel::GetWebContents() const {
189 void Panel::SetExpansionState(ExpansionState new_state) {
203 content::Source<Panel>(this),
207 bool Panel::IsDrawingAttention() const {
211 void Panel::FullScreenModeChanged(bool is_full_screen) {
215 int Panel::TitleOnlyHeight() const {
219 bool Panel::CanShowMinimizeButton() const {
223 bool Panel::CanShowRestoreButton() const {
227 bool Panel::IsActive() const {
231 bool Panel::IsMaximized() const {
236 bool Panel::IsMinimized() const {
240 bool Panel::IsFullscreen() const {
244 gfx::NativeWindow Panel::GetNativeWindow() {
248 gfx::Rect Panel::GetRestoredBounds() const {
256 ui::WindowShowState Panel::GetRestoredState() const {
260 gfx::Rect Panel::GetBounds() const {
264 void Panel::Show() {
271 void Panel::Hide() {
275 void Panel::ShowInactive() {
282 // Close() may be called multiple times if the panel window is not ready to
284 void Panel::Close() {
288 void Panel::Activate() {
296 void Panel::Deactivate() {
300 void Panel::Maximize() {
304 void Panel::Minimize() {
309 bool Panel::IsMinimizedBySystem() const {
313 bool Panel::IsShownOnActiveDesktop() const {
317 void Panel::ShowShadow(bool show) {
321 void Panel::Restore() {
326 void Panel::SetBounds(const gfx::Rect& bounds) {
327 // Ignore bounds position as the panel manager controls all positioning.
334 void Panel::FlashFrame(bool draw_attention) {
338 // Don't draw attention for an active panel.
342 // Invoking native panel to draw attention must be done before informing the
343 // panel collection because it needs to check internal state of the panel to
344 // determine if the panel has been drawing attention.
349 bool Panel::IsAlwaysOnTop() const {
353 void Panel::ExecuteCommandWithDisposition(int id,
430 void Panel::Observe(int type,
450 void Panel::OnTitlebarClicked(panel::ClickModifier modifier) {
457 // activate a minimized panel on mouse-down regardless of our attempts to
459 // See Panel::OnActiveStateChanged().
461 // panel has been expanded. If the panel is in a stack, the titlebar click
462 // might minimize the panel and we do not want to activate it to make it
471 void Panel::OnMinimizeButtonClicked(panel::ClickModifier modifier) {
476 void Panel::OnRestoreButtonClicked(panel::ClickModifier modifier) {
481 void Panel::OnWindowSizeAvailable() {
485 void Panel::OnNativePanelClosed() {
493 StackedPanelCollection* Panel::stack() const {
498 panel::Resizability Panel::CanResizeByMouse() const {
500 return panel::NOT_RESIZABLE;
505 void Panel::Initialize(const GURL& url,
544 void Panel::SetPanelBounds(const gfx::Rect& bounds) {
549 void Panel::SetPanelBoundsInstantly(const gfx::Rect& bounds) {
553 void Panel::LimitSizeToWorkArea(const gfx::Rect& work_area) {
574 void Panel::SetAutoResizable(bool resizable) {
596 void Panel::EnableWebContentsAutoResize(content::WebContents* web_contents) {
612 void Panel::OnContentsAutoResized(const gfx::Size& new_content_size) {
621 // This reduces extra resizes when panel is first shown.
630 void Panel::OnWindowResizedByMouse(const gfx::Rect& new_bounds) {
635 void Panel::SetSizeRange(const gfx::Size& min_size, const gfx::Size& max_size) {
647 void Panel::IncreaseMaxSize(const gfx::Size& desired_panel_size) {
657 void Panel::HandleKeyboardEvent(const content::NativeWebKeyboardEvent& event) {
661 void Panel::SetAlwaysOnTop(bool on_top) {
665 void Panel::SetPreviewMode(bool in_preview) {
670 void Panel::EnableResizeByMouse(bool enable) {
675 void Panel::UpdateMinimizeRestoreButtonVisibility() {
679 gfx::Size Panel::ClampSize(const gfx::Size& size) const {
680 // The panel width:
688 // The panel height:
699 void Panel::OnActiveStateChanged(bool active) {
700 // Clear attention state when an expanded panel becomes active.
701 // On some systems (e.g. Win), mouse-down activates a panel regardless of
705 // See Panel::OnTitlebarClicked().
722 content::Source<Panel>(this),
726 void Panel::OnPanelStartUserResizing() {
732 void Panel::OnPanelEndUserResizing() {
736 bool Panel::ShouldCloseWindow() {
740 void Panel::OnWindowClosing() {
747 bool Panel::ExecuteCommandIfEnabled(int id) {
756 string16 Panel::GetWindowTitle() const {
772 gfx::Image Panel::GetCurrentPageIcon() const {
776 void Panel::UpdateTitleBar() {
780 void Panel::LoadingStateChanged(bool is_loading) {
786 void Panel::WebContentsFocused(content::WebContents* contents) {
790 void Panel::MoveByInstantly(const gfx::Vector2d& delta_origin) {
796 void Panel::SetWindowCornerStyle(panel::CornerStyle corner_style) {
800 void Panel::MinimizeBySystem() {
804 Panel::Panel(Profile* profile, const std::string& app_name,
822 void Panel::OnImageLoaded(const gfx::Image& image) {
830 content::Source<Panel>(this),
834 void Panel::InitCommandState() {
863 void Panel::ConfigureAutoResize(content::WebContents* web_contents) {
877 void Panel::UpdateAppIcon() {
891 base::Bind(&Panel::OnImageLoaded,
896 void Panel::FormatTitleForDisplay(string16* title) {