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

Side by Side Diff: views/window/window.h

Issue 6622002: Do all OOLing in the views code. linux_views now builds clean with the clang plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 VIEWS_WINDOW_WINDOW_H_ 5 #ifndef VIEWS_WINDOW_WINDOW_H_
6 #define VIEWS_WINDOW_WINDOW_H_ 6 #define VIEWS_WINDOW_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 virtual void SetFullscreen(bool fullscreen) = 0; 131 virtual void SetFullscreen(bool fullscreen) = 0;
132 virtual bool IsFullscreen() const = 0; 132 virtual bool IsFullscreen() const = 0;
133 133
134 // Sets whether or not the window should show its frame as a "transient drag 134 // Sets whether or not the window should show its frame as a "transient drag
135 // frame" - slightly transparent and without the standard window controls. 135 // frame" - slightly transparent and without the standard window controls.
136 virtual void SetUseDragFrame(bool use_drag_frame) = 0; 136 virtual void SetUseDragFrame(bool use_drag_frame) = 0;
137 137
138 // Returns true if the Window is considered to be an "app window" - i.e. 138 // Returns true if the Window is considered to be an "app window" - i.e.
139 // any window which when it is the last of its type closed causes the 139 // any window which when it is the last of its type closed causes the
140 // application to exit. 140 // application to exit.
141 virtual bool IsAppWindow() const { return false; } 141 virtual bool IsAppWindow() const;
142 142
143 // Toggles the enable state for the Close button (and the Close menu item in 143 // Toggles the enable state for the Close button (and the Close menu item in
144 // the system menu). 144 // the system menu).
145 virtual void EnableClose(bool enable) = 0; 145 virtual void EnableClose(bool enable) = 0;
146 146
147 // Tell the window to update its title from the delegate. 147 // Tell the window to update its title from the delegate.
148 virtual void UpdateWindowTitle() = 0; 148 virtual void UpdateWindowTitle() = 0;
149 149
150 // Tell the window to update its icon from the delegate. 150 // Tell the window to update its icon from the delegate.
151 virtual void UpdateWindowIcon() = 0; 151 virtual void UpdateWindowIcon() = 0;
(...skipping 22 matching lines...) Expand all
174 // Whether we should be using a native frame. 174 // Whether we should be using a native frame.
175 virtual bool ShouldUseNativeFrame() const = 0; 175 virtual bool ShouldUseNativeFrame() const = 0;
176 176
177 // Tell the window that something caused the frame type to change. 177 // Tell the window that something caused the frame type to change.
178 virtual void FrameTypeChanged() = 0; 178 virtual void FrameTypeChanged() = 0;
179 }; 179 };
180 180
181 } // namespace views 181 } // namespace views
182 182
183 #endif // #ifndef VIEWS_WINDOW_WINDOW_H_ 183 #endif // #ifndef VIEWS_WINDOW_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698