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

Side by Side Diff: chrome/browser/ui/panels/panel_titlebar_view_cocoa.h

Issue 8574068: Mac Panels interaction with Dock modifications. (step 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more feedback Created 9 years, 1 month 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) 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 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "chrome/browser/ui/cocoa/tracking_area.h" 10 #import "chrome/browser/ui/cocoa/tracking_area.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 IBOutlet NSView* settingsButtonWrapper_; 42 IBOutlet NSView* settingsButtonWrapper_;
43 IBOutlet HoverImageButton* settingsButton_; 43 IBOutlet HoverImageButton* settingsButton_;
44 // Transparent view on top of entire titlebar. It catches mouse events to 44 // Transparent view on top of entire titlebar. It catches mouse events to
45 // prevent window activation by the system on mouseDown. 45 // prevent window activation by the system on mouseDown.
46 IBOutlet NSView* overlay_; 46 IBOutlet NSView* overlay_;
47 NSButton* closeButton_; // Created explicitly, not from NIB. Weak, destroyed 47 NSButton* closeButton_; // Created explicitly, not from NIB. Weak, destroyed
48 // when view is destroyed, as a subview. 48 // when view is destroyed, as a subview.
49 ScopedCrTrackingArea closeButtonTrackingArea_; 49 ScopedCrTrackingArea closeButtonTrackingArea_;
50 PanelDragState dragState_; 50 PanelDragState dragState_;
51 BOOL isDrawingAttention_; 51 BOOL isDrawingAttention_;
52 NSPoint dragStartLocation_;
52 } 53 }
53 54
54 // Callback from Close button. 55 // Callback from Close button.
55 - (void)onCloseButtonClick:(id)sender; 56 - (void)onCloseButtonClick:(id)sender;
56 57
57 // Callback from Settings button. 58 // Callback from Settings button.
58 - (void)onSettingsButtonClick:(id)sender; 59 - (void)onSettingsButtonClick:(id)sender;
59 60
60 // Attaches this view to the controller_'s window as a titlebar. 61 // Attaches this view to the controller_'s window as a titlebar.
61 - (void)attach; 62 - (void)attach;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 - (void)pressLeftMouseButtonTitlebar; 104 - (void)pressLeftMouseButtonTitlebar;
104 - (void)releaseLeftMouseButtonTitlebar; 105 - (void)releaseLeftMouseButtonTitlebar;
105 - (void)dragTitlebarDeltaX:(double)delta_x 106 - (void)dragTitlebarDeltaX:(double)delta_x
106 deltaY:(double)delta_y; 107 deltaY:(double)delta_y;
107 - (void)cancelDragTitlebar; 108 - (void)cancelDragTitlebar;
108 - (void)finishDragTitlebar; 109 - (void)finishDragTitlebar;
109 110
110 @end // @interface PanelTitlebarViewCocoa(TestingAPI) 111 @end // @interface PanelTitlebarViewCocoa(TestingAPI)
111 112
112 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ 113 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698