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

Side by Side Diff: ash/wm/caption_buttons/frame_caption_button.h

Issue 123043002: Use the tall header for restored browser popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.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_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_ 5 #ifndef ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_
6 #define ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_ 6 #define ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/caption_buttons/caption_button_types.h" 9 #include "ash/wm/caption_buttons/caption_button_types.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/gfx/image/image_skia.h" 11 #include "ui/gfx/image/image_skia.h"
12 #include "ui/views/controls/button/image_button.h" 12 #include "ui/views/controls/button/image_button.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 class SlideAnimation; 15 class SlideAnimation;
16 } 16 }
17 17
18 namespace ash { 18 namespace ash {
19 19
20 // Base class for the window caption buttons (minimize, maximize, restore, 20 // Base class for the window caption buttons (minimize, maximize, restore,
21 // close). 21 // close).
22 class ASH_EXPORT FrameCaptionButton : public views::ImageButton { 22 class ASH_EXPORT FrameCaptionButton : public views::ImageButton {
23 public: 23 public:
24 enum Animate { 24 enum Animate {
25 ANIMATE_YES, 25 ANIMATE_YES,
26 ANIMATE_NO 26 ANIMATE_NO
27 }; 27 };
28 28
29 enum Style { 29 enum Style {
30 // Restored tabbed browser windows. 30 // Restored browser windows.
31 STYLE_TALL_RESTORED, 31 STYLE_TALL_RESTORED,
32 32
33 // All other restored windows. 33 // All other restored windows.
34 STYLE_SHORT_RESTORED, 34 STYLE_SHORT_RESTORED,
35 35
36 // Maximized or fullscreen windows. 36 // Maximized or fullscreen windows.
37 STYLE_SHORT_MAXIMIZED_OR_FULLSCREEN 37 STYLE_SHORT_MAXIMIZED_OR_FULLSCREEN
38 }; 38 };
39 39
40 static const char kViewClassName[]; 40 static const char kViewClassName[];
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 gfx::ImageSkia crossfade_image_; 85 gfx::ImageSkia crossfade_image_;
86 86
87 scoped_ptr<gfx::SlideAnimation> animation_; 87 scoped_ptr<gfx::SlideAnimation> animation_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButton); 89 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButton);
90 }; 90 };
91 91
92 } // namespace ash 92 } // namespace ash
93 93
94 #endif // ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_ 94 #endif // ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698