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

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

Issue 159871: Ensure that popup windows are not themed.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_NON_CLIENT_VIEW_H_ 5 #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_
6 #define VIEWS_WINDOW_NON_CLIENT_VIEW_H_ 6 #define VIEWS_WINDOW_NON_CLIENT_VIEW_H_
7 7
8 #include "base/task.h" 8 #include "base/task.h"
9 #include "views/view.h" 9 #include "views/view.h"
10 #include "views/window/client_view.h" 10 #include "views/window/client_view.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 void LayoutFrameView(); 191 void LayoutFrameView();
192 192
193 // NonClientView, View overrides: 193 // NonClientView, View overrides:
194 virtual gfx::Size GetPreferredSize(); 194 virtual gfx::Size GetPreferredSize();
195 virtual gfx::Size GetMinimumSize(); 195 virtual gfx::Size GetMinimumSize();
196 virtual void Layout(); 196 virtual void Layout();
197 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role); 197 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);
198 virtual bool GetAccessibleName(std::wstring* name); 198 virtual bool GetAccessibleName(std::wstring* name);
199 virtual void SetAccessibleName(const std::wstring& name); 199 virtual void SetAccessibleName(const std::wstring& name);
200 200
201 // Call if the nonclientview is in an app or popup and we are in Vista, to
202 // force usage of glass frame.
203 void ForceAeroGlassFrame();
204
201 protected: 205 protected:
202 // NonClientView, View overrides: 206 // NonClientView, View overrides:
203 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); 207 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
204 virtual views::View* GetViewForPoint(const gfx::Point& point); 208 virtual views::View* GetViewForPoint(const gfx::Point& point);
205 209
206 private: 210 private:
207 // The frame that hosts this NonClientView. 211 // The frame that hosts this NonClientView.
208 Window* frame_; 212 Window* frame_;
209 213
210 // A ClientView object or subclass, responsible for sizing the contents view 214 // A ClientView object or subclass, responsible for sizing the contents view
211 // of the window, hit testing and perhaps other tasks depending on the 215 // of the window, hit testing and perhaps other tasks depending on the
212 // implementation. 216 // implementation.
213 ClientView* client_view_; 217 ClientView* client_view_;
214 218
215 // The NonClientFrameView that renders the non-client portions of the window. 219 // The NonClientFrameView that renders the non-client portions of the window.
216 // This object is not owned by the view hierarchy because it can be replaced 220 // This object is not owned by the view hierarchy because it can be replaced
217 // dynamically as the system settings change. 221 // dynamically as the system settings change.
218 scoped_ptr<NonClientFrameView> frame_view_; 222 scoped_ptr<NonClientFrameView> frame_view_;
219 223
220 // The accessible name of this view. 224 // The accessible name of this view.
221 std::wstring accessible_name_; 225 std::wstring accessible_name_;
222 226
227 // True if the nonclientview is in an app or popup and we are in Vista. Used
228 // to force usage of glass frame.
229 bool force_aero_glass_frame_;
230
223 DISALLOW_COPY_AND_ASSIGN(NonClientView); 231 DISALLOW_COPY_AND_ASSIGN(NonClientView);
224 }; 232 };
225 233
226 } // namespace views 234 } // namespace views
227 235
228 #endif // #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_ 236 #endif // #ifndef VIEWS_WINDOW_NON_CLIENT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/opaque_browser_frame_view.cc ('k') | views/window/non_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698