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

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

Issue 59043013: Add flag to enable immersive fullscreen for v2 apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 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_CONTAINER_VIEW_H_ 5 #ifndef ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_
6 #define ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ 6 #define ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ui/gfx/image/image_skia.h" 9 #include "ui/gfx/image/image_skia.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 CustomButton; 14 class CustomButton;
15 class Widget; 15 class Widget;
16 } 16 }
17 17
18 namespace ash { 18 namespace ash {
19 class FrameMaximizeButton;
19 20
20 // Container view for the frame caption buttons. It performs the appropriate 21 // Container view for the frame caption buttons. It performs the appropriate
21 // action when a caption button is clicked. 22 // action when a caption button is clicked.
22 class ASH_EXPORT FrameCaptionButtonContainerView 23 class ASH_EXPORT FrameCaptionButtonContainerView
23 : public views::View, 24 : public views::View,
24 public views::ButtonListener { 25 public views::ButtonListener {
25 public: 26 public:
26 static const char kViewClassName[]; 27 static const char kViewClassName[];
27 28
28 // Whether the frame can be minimized (either via the maximize/restore button 29 // Whether the frame can be minimized (either via the maximize/restore button
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 views::CustomButton* close_button() const { 70 views::CustomButton* close_button() const {
70 return container_view_->close_button_; 71 return container_view_->close_button_;
71 } 72 }
72 73
73 private: 74 private:
74 FrameCaptionButtonContainerView* container_view_; 75 FrameCaptionButtonContainerView* container_view_;
75 76
76 DISALLOW_COPY_AND_ASSIGN(TestApi); 77 DISALLOW_COPY_AND_ASSIGN(TestApi);
77 }; 78 };
78 79
80 // Returns the size button if using the old caption button style, returns NULL
81 // otherwise.
82 FrameMaximizeButton* GetOldStyleSizeButton() const;
oshima 2013/11/08 23:25:32 no const when returning non const internal object.
83
79 // Tell the window controls to reset themselves to the normal state. 84 // Tell the window controls to reset themselves to the normal state.
80 void ResetWindowControls(); 85 void ResetWindowControls();
81 86
82 // Determines the window HT* code for the caption button at |point|. Returns 87 // Determines the window HT* code for the caption button at |point|. Returns
83 // HTNOWHERE if |point| is not over any of the caption buttons. |point| must 88 // HTNOWHERE if |point| is not over any of the caption buttons. |point| must
84 // be in the coordinates of the FrameCaptionButtonContainerView. 89 // be in the coordinates of the FrameCaptionButtonContainerView.
85 int NonClientHitTest(const gfx::Point& point) const; 90 int NonClientHitTest(const gfx::Point& point) const;
86 91
87 // Sets the header style. 92 // Sets the header style.
88 void set_header_style(HeaderStyle header_style) { 93 void set_header_style(HeaderStyle header_style) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 views::CustomButton* minimize_button_; 140 views::CustomButton* minimize_button_;
136 views::CustomButton* size_button_; 141 views::CustomButton* size_button_;
137 views::CustomButton* close_button_; 142 views::CustomButton* close_button_;
138 143
139 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButtonContainerView); 144 DISALLOW_COPY_AND_ASSIGN(FrameCaptionButtonContainerView);
140 }; 145 };
141 146
142 } // namesapace ash 147 } // namesapace ash
143 148
144 #endif // ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_ 149 #endif // ASH_WM_CAPTION_BUTTONS_FRAME_CAPTION_BUTTON_CONTAINER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698