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

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

Issue 263083005: Remove "Alternate frame caption button style" command line flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 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_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ 5 #ifndef ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_
6 #define ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ 6 #define ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_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 "ui/views/controls/button/button.h" 10 #include "ui/views/controls/button/button.h"
11 #include "ui/views/view.h" 11 #include "ui/views/view.h"
12 12
13 namespace views { 13 namespace views {
14 class Widget; 14 class Widget;
15 } 15 }
16 16
17 namespace ash { 17 namespace ash {
18 class FrameCaptionButton; 18 class FrameCaptionButton;
19 class FrameMaximizeButton;
20 19
21 // Container view for the frame caption buttons. It performs the appropriate 20 // Container view for the frame caption buttons. It performs the appropriate
22 // action when a caption button is clicked. 21 // action when a caption button is clicked.
23 class ASH_EXPORT FrameCaptionButtonContainerView 22 class ASH_EXPORT FrameCaptionButtonContainerView
24 : public views::View, 23 : public views::View,
25 public views::ButtonListener, 24 public views::ButtonListener,
26 public AlternateFrameSizeButtonDelegate { 25 public AlternateFrameSizeButtonDelegate {
27 public: 26 public:
28 static const char kViewClassName[]; 27 static const char kViewClassName[];
29 28
(...skipping 29 matching lines...) Expand all
59 FrameCaptionButton* close_button() const { 58 FrameCaptionButton* close_button() const {
60 return container_view_->close_button_; 59 return container_view_->close_button_;
61 } 60 }
62 61
63 private: 62 private:
64 FrameCaptionButtonContainerView* container_view_; 63 FrameCaptionButtonContainerView* container_view_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(TestApi); 65 DISALLOW_COPY_AND_ASSIGN(TestApi);
67 }; 66 };
68 67
69 // Returns the size button if using the old caption button style, returns NULL
70 // otherwise.
71 FrameMaximizeButton* GetOldStyleSizeButton();
72
73 // Sets the resource ids of the images to paint the button for |icon|. The 68 // Sets the resource ids of the images to paint the button for |icon|. The
74 // FrameCaptionButtonContainerView will keep track of the images to use for 69 // FrameCaptionButtonContainerView will keep track of the images to use for
75 // |icon| even if none of the buttons currently use |icon|. 70 // |icon| even if none of the buttons currently use |icon|.
76 void SetButtonImages(CaptionButtonIcon icon, 71 void SetButtonImages(CaptionButtonIcon icon,
77 int icon_image_id, 72 int icon_image_id,
78 int inactive_icon_image_id, 73 int inactive_icon_image_id,
79 int hovered_background_image_id, 74 int hovered_background_image_id,
80 int pressed_background_image_id); 75 int pressed_background_image_id);
81 76
82 // Sets whether the buttons should be painted as active. Does not schedule 77 // Sets whether the buttons should be painted as active. Does not schedule
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Mapping of the images needed to paint a button for each of the values of 149 // Mapping of the images needed to paint a button for each of the values of
155 // CaptionButtonIcon. 150 // CaptionButtonIcon.
156 std::map<CaptionButtonIcon, ButtonIconIds> button_icon_id_map_; 151 std::map<CaptionButtonIcon, ButtonIconIds> button_icon_id_map_;
157 152
158 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButtonContainerView); 153 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButtonContainerView);
159 }; 154 };
160 155
161 } // namesapace ash 156 } // namesapace ash
162 157
163 #endif // ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ 158 #endif // ASH_FRAME_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_
OLDNEW
« no previous file with comments | « ash/frame/caption_buttons/caption_button_types.h ('k') | ash/frame/caption_buttons/frame_caption_button_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698