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

Side by Side Diff: chrome/browser/ui/cocoa/panels/panel_cocoa.h

Issue 11669018: Support dragging panels to stack and snap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 7 years, 11 months 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) 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 #ifndef CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/panels/native_panel.h" 10 #include "chrome/browser/ui/panels/native_panel.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void HandlePanelKeyboardEvent( 45 virtual void HandlePanelKeyboardEvent(
46 const content::NativeWebKeyboardEvent& event) OVERRIDE; 46 const content::NativeWebKeyboardEvent& event) OVERRIDE;
47 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; 47 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE;
48 virtual bool IsPanelAlwaysOnTop() const OVERRIDE; 48 virtual bool IsPanelAlwaysOnTop() const OVERRIDE;
49 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; 49 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE;
50 virtual void EnableResizeByMouse(bool enable) OVERRIDE; 50 virtual void EnableResizeByMouse(bool enable) OVERRIDE;
51 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; 51 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE;
52 virtual void PanelExpansionStateChanging( 52 virtual void PanelExpansionStateChanging(
53 Panel::ExpansionState old_state, 53 Panel::ExpansionState old_state,
54 Panel::ExpansionState new_state) OVERRIDE; 54 Panel::ExpansionState new_state) OVERRIDE;
55 virtual void UpdatePanelStackingProperty() OVERRIDE;
55 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; 56 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE;
56 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; 57 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE;
57 58
58 // These sizes are in screen coordinates. 59 // These sizes are in screen coordinates.
59 virtual gfx::Size WindowSizeFromContentSize( 60 virtual gfx::Size WindowSizeFromContentSize(
60 const gfx::Size& content_size) const OVERRIDE; 61 const gfx::Size& content_size) const OVERRIDE;
61 virtual gfx::Size ContentSizeFromWindowSize( 62 virtual gfx::Size ContentSizeFromWindowSize(
62 const gfx::Size& window_size) const OVERRIDE; 63 const gfx::Size& window_size) const OVERRIDE;
63 virtual int TitleOnlyHeight() const OVERRIDE; 64 virtual int TitleOnlyHeight() const OVERRIDE;
64 65
(...skipping 30 matching lines...) Expand all
95 // True if the panel should always stay on top of other windows. 96 // True if the panel should always stay on top of other windows.
96 bool always_on_top_; 97 bool always_on_top_;
97 98
98 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. 99 bool is_shown_; // Panel is hidden on creation, Show() changes that forever.
99 NSInteger attention_request_id_; // identifier from requestUserAttention. 100 NSInteger attention_request_id_; // identifier from requestUserAttention.
100 101
101 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); 102 DISALLOW_COPY_AND_ASSIGN(PanelCocoa);
102 }; 103 };
103 104
104 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ 105 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/panels/panel_cocoa.mm » ('j') | chrome/browser/ui/panels/detached_panel_collection.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698