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

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

Issue 8423060: Classification of TODOs in Panel code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cr 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
« no previous file with comments | « chrome/browser/ui/panels/panel_settings_menu_model.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Should be called when size of the titlebar changes. 68 // Should be called when size of the titlebar changes.
69 - (void)updateCloseButtonLayout; 69 - (void)updateCloseButtonLayout;
70 - (void)updateIconAndTitleLayout; 70 - (void)updateIconAndTitleLayout;
71 71
72 // Various events that we'll need to redraw our titlebar for. 72 // Various events that we'll need to redraw our titlebar for.
73 - (void)didChangeFrame:(NSNotification*)notification; 73 - (void)didChangeFrame:(NSNotification*)notification;
74 - (void)didChangeTheme:(NSNotification*)notification; 74 - (void)didChangeTheme:(NSNotification*)notification;
75 - (void)didChangeMainWindow:(NSNotification*)notification; 75 - (void)didChangeMainWindow:(NSNotification*)notification;
76 76
77 // Helpers to control title drag operation, called from more then one place. 77 // Helpers to control title drag operation, called from more then one place.
78 // TODO(dimich): replace BOOL parameter that we have to explicitly specify at
79 // callsites with an enum defined in PanelManager.
80 - (void)startDrag; 78 - (void)startDrag;
81 - (void)endDrag:(BOOL)cancelled; 79 - (void)endDrag:(BOOL)cancelled;
82 - (void)dragWithDeltaX:(int)deltaX; 80 - (void)dragWithDeltaX:(int)deltaX;
83 81
84 // Update the visibility of settings button. 82 // Update the visibility of settings button.
85 - (void)updateSettingsButtonVisibility:(BOOL)mouseOverWindow; 83 - (void)updateSettingsButtonVisibility:(BOOL)mouseOverWindow;
86 - (void)checkMouseAndUpdateSettingsButtonVisibility; 84 - (void)checkMouseAndUpdateSettingsButtonVisibility;
87 85
88 // Draw Attention methods - change appearance of titlebar to attract user. 86 // Draw Attention methods - change appearance of titlebar to attract user.
89 - (void)drawAttention; 87 - (void)drawAttention;
(...skipping 15 matching lines...) Expand all
105 - (void)pressLeftMouseButtonTitlebar; 103 - (void)pressLeftMouseButtonTitlebar;
106 - (void)releaseLeftMouseButtonTitlebar; 104 - (void)releaseLeftMouseButtonTitlebar;
107 - (void)dragTitlebarDeltaX:(double)delta_x 105 - (void)dragTitlebarDeltaX:(double)delta_x
108 deltaY:(double)delta_y; 106 deltaY:(double)delta_y;
109 - (void)cancelDragTitlebar; 107 - (void)cancelDragTitlebar;
110 - (void)finishDragTitlebar; 108 - (void)finishDragTitlebar;
111 109
112 @end // @interface PanelTitlebarViewCocoa(TestingAPI) 110 @end // @interface PanelTitlebarViewCocoa(TestingAPI)
113 111
114 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_ 112 #endif // CHROME_BROWSER_UI_PANELS_PANEL_TITLEBAR_VIEW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_settings_menu_model.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698