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

Side by Side Diff: chrome/browser/ui/views/wrench_menu.cc

Issue 6334152: Clean up RTL methods.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
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 #include "chrome/browser/ui/views/wrench_menu.h" 5 #include "chrome/browser/ui/views/wrench_menu.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // forces a paint all. 229 // forces a paint all.
230 class ScheduleAllView : public views::View { 230 class ScheduleAllView : public views::View {
231 public: 231 public:
232 ScheduleAllView() {} 232 ScheduleAllView() {}
233 233
234 virtual void SchedulePaint(const gfx::Rect& r, bool urgent) { 234 virtual void SchedulePaint(const gfx::Rect& r, bool urgent) {
235 if (!IsVisible()) 235 if (!IsVisible())
236 return; 236 return;
237 237
238 if (GetParent()) { 238 if (GetParent()) {
239 GetParent()->SchedulePaint(GetBounds(APPLY_MIRRORING_TRANSFORMATION), 239 GetParent()->SchedulePaint(GetMirroredBounds(), urgent);
240 urgent);
241 } 240 }
242 } 241 }
243 242
244 private: 243 private:
245 DISALLOW_COPY_AND_ASSIGN(ScheduleAllView); 244 DISALLOW_COPY_AND_ASSIGN(ScheduleAllView);
246 }; 245 };
247 246
248 string16 GetAccessibleNameForWrenchMenuItem( 247 string16 GetAccessibleNameForWrenchMenuItem(
249 MenuModel* model, int item_index, int accessible_string_id) { 248 MenuModel* model, int item_index, int accessible_string_id) {
250 string16 accessible_name = l10n_util::GetStringUTF16(accessible_string_id); 249 string16 accessible_name = l10n_util::GetStringUTF16(accessible_string_id);
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 } 703 }
705 704
706 return menu_item; 705 return menu_item;
707 } 706 }
708 707
709 void WrenchMenu::CancelAndEvaluate(MenuModel* model, int index) { 708 void WrenchMenu::CancelAndEvaluate(MenuModel* model, int index) {
710 selected_menu_model_ = model; 709 selected_menu_model_ = model;
711 selected_index_ = index; 710 selected_index_ = index;
712 root_->Cancel(); 711 root_->Cancel();
713 } 712 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/theme_install_bubble_view.cc ('k') | views/animation/bounds_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698