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

Side by Side Diff: ui/oak/oak_aura_window_display.cc

Issue 89243003: Move EmptyString, kWhitespace and the BOM to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/compositor/compositor.cc ('k') | no next file » | 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 #include "ui/oak/oak_aura_window_display.h" 5 #include "ui/oak/oak_aura_window_display.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 //////////////////////////////////////////////////////////////////////////////// 93 ////////////////////////////////////////////////////////////////////////////////
94 // OakAuraWindowDisplay, ui::TableModel implementation: 94 // OakAuraWindowDisplay, ui::TableModel implementation:
95 95
96 int OakAuraWindowDisplay::RowCount() { 96 int OakAuraWindowDisplay::RowCount() {
97 return ROW_COUNT; 97 return ROW_COUNT;
98 } 98 }
99 99
100 base::string16 OakAuraWindowDisplay::GetText(int row, int column_id) { 100 base::string16 OakAuraWindowDisplay::GetText(int row, int column_id) {
101 if (!window_) 101 if (!window_)
102 return EmptyString16(); 102 return base::string16();
103 103
104 base::string16 text; 104 base::string16 text;
105 switch (row) { 105 switch (row) {
106 case ROW_ID: 106 case ROW_ID:
107 return PropertyWithInteger("Id: ", window_->id()); 107 return PropertyWithInteger("Id: ", window_->id());
108 case ROW_DELEGATE: 108 case ROW_DELEGATE:
109 return PropertyWithVoidStar("Delegate: ", window_->delegate()); 109 return PropertyWithVoidStar("Delegate: ", window_->delegate());
110 case ROW_TYPE: 110 case ROW_TYPE:
111 return PropertyWithWindowType(window_->type()); 111 return PropertyWithWindowType(window_->type());
112 case ROW_NAME: 112 case ROW_NAME:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 case ROW_HITTESTBOUNDSOVERRIDEOUTER: 146 case ROW_HITTESTBOUNDSOVERRIDEOUTER:
147 return PropertyWithInsets("Hit test bounds override outer: ", 147 return PropertyWithInsets("Hit test bounds override outer: ",
148 window_->hit_test_bounds_override_outer_mouse()); 148 window_->hit_test_bounds_override_outer_mouse());
149 case ROW_HITTESTBOUNDSOVERRIDEINNER: 149 case ROW_HITTESTBOUNDSOVERRIDEINNER:
150 return PropertyWithInsets("Hit test bounds override inner: ", 150 return PropertyWithInsets("Hit test bounds override inner: ",
151 window_->hit_test_bounds_override_inner()); 151 window_->hit_test_bounds_override_inner());
152 default: 152 default:
153 NOTREACHED(); 153 NOTREACHED();
154 break; 154 break;
155 } 155 }
156 return EmptyString16(); 156 return base::string16();
157 } 157 }
158 158
159 void OakAuraWindowDisplay::SetObserver(ui::TableModelObserver* observer) { 159 void OakAuraWindowDisplay::SetObserver(ui::TableModelObserver* observer) {
160 observer_ = observer; 160 observer_ = observer;
161 } 161 }
162 162
163 } // namespace internal 163 } // namespace internal
164 } // namespace oak 164 } // namespace oak
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698