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

Unified Diff: ui/views/examples/text_example.cc

Issue 10824016: views/examples: Pure pedantic change. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/examples/slider_example.cc ('k') | ui/views/examples/textfield_example.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/text_example.cc
diff --git a/ui/views/examples/text_example.cc b/ui/views/examples/text_example.cc
index b5e3912e74f396b156243703ad0f78be4aca3c71..d8db070c1d7104fd5ef2c9418672a68d7ab28ddd 100644
--- a/ui/views/examples/text_example.cc
+++ b/ui/views/examples/text_example.cc
@@ -14,6 +14,9 @@
#include "ui/views/layout/grid_layout.h"
#include "ui/views/view.h"
+namespace views {
+namespace examples {
+
namespace {
// Number of columns in the view layout.
@@ -73,7 +76,7 @@ const char* kVerticalAlignments[] = {
};
// Toggles bit |flag| on |flags| based on state of |checkbox|.
-void SetFlagFromCheckbox(views::Checkbox* checkbox, int* flags, int flag) {
+void SetFlagFromCheckbox(Checkbox* checkbox, int* flags, int flag) {
if (checkbox->checked())
*flags |= flag;
else
@@ -82,9 +85,6 @@ void SetFlagFromCheckbox(views::Checkbox* checkbox, int* flags, int flag) {
} // namespace
-namespace views {
-namespace examples {
-
// TextExample's content view, which is responsible for drawing a string with
// the specified style.
class TextExample::TextExampleView : public View {
@@ -202,7 +202,7 @@ Combobox* TextExample::AddCombobox(GridLayout* layout,
void TextExample::CreateExampleView(View* container) {
text_view_ = new TextExampleView;
- text_view_->set_border(views::Border::CreateSolidBorder(1, SK_ColorGRAY));
+ text_view_->set_border(Border::CreateSolidBorder(1, SK_ColorGRAY));
GridLayout* layout = new GridLayout(container);
container->SetLayoutManager(layout);
« no previous file with comments | « ui/views/examples/slider_example.cc ('k') | ui/views/examples/textfield_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698