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

Side by Side Diff: ui/views/controls/single_split_view.h

Issue 117983002: Prefix string16 with base:: in ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years 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/controls/scrollbar/base_scroll_bar.cc ('k') | ui/views/controls/single_split_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTROLS_SINGLE_SPLIT_VIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_H_
6 #define UI_VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_H_ 6 #define UI_VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 resize_leading_on_bounds_change_ = resize; 70 resize_leading_on_bounds_change_ = resize;
71 } 71 }
72 72
73 // Calculates ideal leading and trailing view bounds according to the given 73 // Calculates ideal leading and trailing view bounds according to the given
74 // split view |bounds|, current divider offset and children visiblity. 74 // split view |bounds|, current divider offset and children visiblity.
75 // Does not change children view bounds. 75 // Does not change children view bounds.
76 void CalculateChildrenBounds(const gfx::Rect& bounds, 76 void CalculateChildrenBounds(const gfx::Rect& bounds,
77 gfx::Rect* leading_bounds, 77 gfx::Rect* leading_bounds,
78 gfx::Rect* trailing_bounds) const; 78 gfx::Rect* trailing_bounds) const;
79 79
80 void SetAccessibleName(const string16& name); 80 void SetAccessibleName(const base::string16& name);
81 81
82 protected: 82 protected:
83 // View overrides. 83 // View overrides.
84 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 84 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
85 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 85 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
86 virtual void OnMouseCaptureLost() OVERRIDE; 86 virtual void OnMouseCaptureLost() OVERRIDE;
87 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 87 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
88 88
89 private: 89 private:
90 // This test calls OnMouse* functions. 90 // This test calls OnMouse* functions.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 bool resize_leading_on_bounds_change_; 131 bool resize_leading_on_bounds_change_;
132 132
133 // Whether resizing is disabled. 133 // Whether resizing is disabled.
134 bool resize_disabled_; 134 bool resize_disabled_;
135 135
136 // Listener to notify about user initiated handle movements. Not owned. 136 // Listener to notify about user initiated handle movements. Not owned.
137 SingleSplitViewListener* listener_; 137 SingleSplitViewListener* listener_;
138 138
139 // The accessible name of this view. 139 // The accessible name of this view.
140 string16 accessible_name_; 140 base::string16 accessible_name_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(SingleSplitView); 142 DISALLOW_COPY_AND_ASSIGN(SingleSplitView);
143 }; 143 };
144 144
145 } // namespace views 145 } // namespace views
146 146
147 #endif // UI_VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_H_ 147 #endif // UI_VIEWS_CONTROLS_SINGLE_SPLIT_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/scrollbar/base_scroll_bar.cc ('k') | ui/views/controls/single_split_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698