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

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

Issue 10795078: Fixes two bugs related to constrained windows: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « ui/views/widget/native_widget_aura_unittest.cc ('k') | ui/views/window/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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WINDOW_CLIENT_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_CLIENT_VIEW_H_
6 #define UI_VIEWS_WINDOW_CLIENT_VIEW_H_ 6 #define UI_VIEWS_WINDOW_CLIENT_VIEW_H_
7 7
8 #include "ui/views/view.h" 8 #include "ui/views/view.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // HTNOWHERE to tell the caller to do further processing to determine where 51 // HTNOWHERE to tell the caller to do further processing to determine where
52 // in the non-client area it is (if it is). 52 // in the non-client area it is (if it is).
53 // Subclasses of ClientView can extend this logic by overriding this method 53 // Subclasses of ClientView can extend this logic by overriding this method
54 // to detect if regions within the client area count as parts of the "non- 54 // to detect if regions within the client area count as parts of the "non-
55 // client" area. A good example of this is the size box at the bottom right 55 // client" area. A good example of this is the size box at the bottom right
56 // corner of resizable dialog boxes. 56 // corner of resizable dialog boxes.
57 virtual int NonClientHitTest(const gfx::Point& point); 57 virtual int NonClientHitTest(const gfx::Point& point);
58 58
59 // Overridden from View: 59 // Overridden from View:
60 virtual gfx::Size GetPreferredSize() OVERRIDE; 60 virtual gfx::Size GetPreferredSize() OVERRIDE;
61 virtual gfx::Size GetMinimumSize() OVERRIDE;
61 virtual void Layout() OVERRIDE; 62 virtual void Layout() OVERRIDE;
62 virtual std::string GetClassName() const OVERRIDE; 63 virtual std::string GetClassName() const OVERRIDE;
63 64
64 protected: 65 protected:
65 // Overridden from View: 66 // Overridden from View:
66 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 67 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
67 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 68 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
68 virtual void ViewHierarchyChanged(bool is_add, 69 virtual void ViewHierarchyChanged(bool is_add,
69 View* parent, 70 View* parent,
70 View* child) OVERRIDE; 71 View* child) OVERRIDE;
71 72
72 // Accessors for private data members. 73 // Accessors for private data members.
73 View* contents_view() const { return contents_view_; } 74 View* contents_view() const { return contents_view_; }
74 void set_contents_view(View* contents_view) { 75 void set_contents_view(View* contents_view) {
75 contents_view_ = contents_view; 76 contents_view_ = contents_view;
76 } 77 }
77 78
78 private: 79 private:
79 // The View that this ClientView contains. 80 // The View that this ClientView contains.
80 View* contents_view_; 81 View* contents_view_;
81 }; 82 };
82 83
83 } // namespace views 84 } // namespace views
84 85
85 #endif // UI_VIEWS_WINDOW_CLIENT_VIEW_H_ 86 #endif // UI_VIEWS_WINDOW_CLIENT_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura_unittest.cc ('k') | ui/views/window/client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698