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

Side by Side Diff: chrome/test/ui_test_utils.cc

Issue 6894009: Change NavigationEntry's title fields to carry the text direction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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/test/ui_test_utils.h" 5 #include "chrome/test/ui_test_utils.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 ui_test_utils::RunMessageLoop(); 392 ui_test_utils::RunMessageLoop();
393 } 393 }
394 394
395 bool GetCurrentTabTitle(const Browser* browser, string16* title) { 395 bool GetCurrentTabTitle(const Browser* browser, string16* title) {
396 TabContents* tab_contents = browser->GetSelectedTabContents(); 396 TabContents* tab_contents = browser->GetSelectedTabContents();
397 if (!tab_contents) 397 if (!tab_contents)
398 return false; 398 return false;
399 NavigationEntry* last_entry = tab_contents->controller().GetActiveEntry(); 399 NavigationEntry* last_entry = tab_contents->controller().GetActiveEntry();
400 if (!last_entry) 400 if (!last_entry)
401 return false; 401 return false;
402 title->assign(last_entry->GetTitleForDisplay("")); 402 // TODO(evan): use directionality of title.
403 // http://code.google.com/p/chromium/issues/detail?id=27094
404 title->assign(last_entry->GetTitleForDisplay("").string());
403 return true; 405 return true;
404 } 406 }
405 407
406 bool WaitForNavigationInCurrentTab(Browser* browser) { 408 bool WaitForNavigationInCurrentTab(Browser* browser) {
407 TabContents* tab_contents = browser->GetSelectedTabContents(); 409 TabContents* tab_contents = browser->GetSelectedTabContents();
408 if (!tab_contents) 410 if (!tab_contents)
409 return false; 411 return false;
410 WaitForNavigation(&tab_contents->controller()); 412 WaitForNavigation(&tab_contents->controller());
411 return true; 413 return true;
412 } 414 }
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap); 1072 return taker.TakeRenderWidgetSnapshot(rwh, page_size, page_size, bitmap);
1071 } 1073 }
1072 1074
1073 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) { 1075 bool TakeEntirePageSnapshot(RenderViewHost* rvh, SkBitmap* bitmap) {
1074 DCHECK(bitmap); 1076 DCHECK(bitmap);
1075 SnapshotTaker taker; 1077 SnapshotTaker taker;
1076 return taker.TakeEntirePageSnapshot(rvh, bitmap); 1078 return taker.TakeEntirePageSnapshot(rvh, bitmap);
1077 } 1079 }
1078 1080
1079 } // namespace ui_test_utils 1081 } // namespace ui_test_utils
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/back_forward_menu_model_unittest.cc ('k') | content/browser/site_instance_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698