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

Side by Side Diff: ash/frame/caption_buttons/alternate_frame_size_button.h

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « ash/focus_cycler_unittest.cc ('k') | ash/frame/caption_buttons/alternate_frame_size_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_FRAME_CAPTION_BUTTONS_ALTERNATE_FRAME_SIZE_BUTTON_H_ 5 #ifndef ASH_FRAME_CAPTION_BUTTONS_ALTERNATE_FRAME_SIZE_BUTTON_H_
6 #define ASH_FRAME_CAPTION_BUTTONS_ALTERNATE_FRAME_SIZE_BUTTON_H_ 6 #define ASH_FRAME_CAPTION_BUTTONS_ALTERNATE_FRAME_SIZE_BUTTON_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/frame/caption_buttons/alternate_frame_size_button_delegate.h" 9 #include "ash/frame/caption_buttons/alternate_frame_size_button_delegate.h"
10 #include "ash/frame/caption_buttons/frame_caption_button.h" 10 #include "ash/frame/caption_buttons/frame_caption_button.h"
11 #include "ash/wm/workspace/snap_types.h" 11 #include "ash/wm/workspace/snap_types.h"
12 #include "base/timer/timer.h" 12 #include "base/timer/timer.h"
13 13
14 namespace views { 14 namespace views {
15 class Widget; 15 class Widget;
16 } 16 }
17 17
18 namespace ash { 18 namespace ash {
19 class AlternateFrameSizeButtonDelegate; 19 class AlternateFrameSizeButtonDelegate;
20
21 namespace internal {
22 class PhantomWindowController; 20 class PhantomWindowController;
23 }
24 21
25 // The maximize/restore button when using the alternate button style. 22 // The maximize/restore button when using the alternate button style.
26 // When the mouse is pressed over the size button or the size button is touched: 23 // When the mouse is pressed over the size button or the size button is touched:
27 // - The minimize and close buttons are set to snap left and snap right 24 // - The minimize and close buttons are set to snap left and snap right
28 // respectively. 25 // respectively.
29 // - The size button stays pressed while the mouse is over the buttons to snap 26 // - The size button stays pressed while the mouse is over the buttons to snap
30 // left and to snap right. The button underneath the mouse is hovered. 27 // left and to snap right. The button underneath the mouse is hovered.
31 // When the drag terminates, the action for the button underneath the mouse 28 // When the drag terminates, the action for the button underneath the mouse
32 // is executed. For the sake of simplicity, the size button is the event 29 // is executed. For the sake of simplicity, the size button is the event
33 // handler for a click starting on the size button and the entire drag. 30 // handler for a click starting on the size button and the entire drag.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool in_snap_mode_; 101 bool in_snap_mode_;
105 102
106 // The action to execute when the drag/click is ended. If 103 // The action to execute when the drag/click is ended. If
107 // |snap_type_| == SNAP_NONE, the size button's default action is run when the 104 // |snap_type_| == SNAP_NONE, the size button's default action is run when the
108 // drag/click is ended. 105 // drag/click is ended.
109 SnapType snap_type_; 106 SnapType snap_type_;
110 107
111 // Displays a preview of how the window's bounds will change as a result of 108 // Displays a preview of how the window's bounds will change as a result of
112 // snapping the window left or right. The preview is only visible if the snap 109 // snapping the window left or right. The preview is only visible if the snap
113 // left or snap right button is pressed. 110 // left or snap right button is pressed.
114 scoped_ptr<internal::PhantomWindowController> phantom_window_controller_; 111 scoped_ptr<PhantomWindowController> phantom_window_controller_;
115 112
116 DISALLOW_COPY_AND_ASSIGN(AlternateFrameSizeButton); 113 DISALLOW_COPY_AND_ASSIGN(AlternateFrameSizeButton);
117 }; 114 };
118 115
119 } // namespace ash 116 } // namespace ash
120 117
121 #endif // ASH_FRAME_CAPTION_BUTTONS_ALTERNATE_FRAME_SIZE_BUTTON_H_ 118 #endif // ASH_FRAME_CAPTION_BUTTONS_ALTERNATE_FRAME_SIZE_BUTTON_H_
OLDNEW
« no previous file with comments | « ash/focus_cycler_unittest.cc ('k') | ash/frame/caption_buttons/alternate_frame_size_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698