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

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

Issue 18804: OpaqueNonClientView cleanup (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | « chrome/views/custom_frame_window.cc ('k') | chrome/views/non_client_view.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 (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 CHROME_VIEWS_NON_CLIENT_VIEW_H_ 5 #ifndef CHROME_VIEWS_NON_CLIENT_VIEW_H_
6 #define CHROME_VIEWS_NON_CLIENT_VIEW_H_ 6 #define CHROME_VIEWS_NON_CLIENT_VIEW_H_
7 7
8 #include "chrome/views/view.h" 8 #include "chrome/views/view.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 } 68 }
69 69
70 protected: 70 protected:
71 NonClientView() : paint_as_active_(false) {} 71 NonClientView() : paint_as_active_(false) {}
72 72
73 // Helper for non-client view implementations to determine which area of the 73 // Helper for non-client view implementations to determine which area of the
74 // window border the specified |point| falls within. The other parameters are 74 // window border the specified |point| falls within. The other parameters are
75 // the size of the sizing edges, and whether or not the window can be 75 // the size of the sizing edges, and whether or not the window can be
76 // resized. 76 // resized.
77 int GetHTComponentForFrame(const gfx::Point& point, 77 int GetHTComponentForFrame(const gfx::Point& point,
78 int resize_area_size, 78 int top_resize_border_height,
79 int resize_area_corner_size, 79 int resize_border_width,
80 int top_resize_area_size, 80 int bottom_resize_border_height,
81 int resize_corner_size,
81 bool can_resize); 82 bool can_resize);
82 83
83 // Accessor for paint_as_active_. 84 // Accessor for paint_as_active_.
84 bool paint_as_active() const { return paint_as_active_; } 85 bool paint_as_active() const { return paint_as_active_; }
85 86
86 private: 87 private:
87 // True when the non-client view should always be rendered as if the window 88 // True when the non-client view should always be rendered as if the window
88 // were active, regardless of whether or not the top level window actually 89 // were active, regardless of whether or not the top level window actually
89 // is active. 90 // is active.
90 bool paint_as_active_; 91 bool paint_as_active_;
91 }; 92 };
92 93
93 } // namespace views 94 } // namespace views
94 95
95 #endif // #ifndef CHROME_VIEWS_NON_CLIENT_VIEW_H_ 96 #endif // #ifndef CHROME_VIEWS_NON_CLIENT_VIEW_H_
96 97
OLDNEW
« no previous file with comments | « chrome/views/custom_frame_window.cc ('k') | chrome/views/non_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698