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

Side by Side Diff: chrome/browser/ui/cocoa/view_id_util_browsertest.mm

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/bookmarks/bookmark_model.h" 8 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/browser/bookmarks/bookmark_utils.h" 9 #include "chrome/browser/bookmarks/bookmark_utils.h"
10 #include "chrome/browser/download/download_shelf.h" 10 #include "chrome/browser/download/download_shelf.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 } 100 }
101 101
102 IN_PROC_BROWSER_TEST_F(ViewIDTest, Tab) { 102 IN_PROC_BROWSER_TEST_F(ViewIDTest, Tab) {
103 CheckViewID(VIEW_ID_TAB_0, true); 103 CheckViewID(VIEW_ID_TAB_0, true);
104 CheckViewID(VIEW_ID_TAB_LAST, true); 104 CheckViewID(VIEW_ID_TAB_LAST, true);
105 105
106 // Open 9 new tabs. 106 // Open 9 new tabs.
107 for (int i = 1; i <= 9; ++i) { 107 for (int i = 1; i <= 9; ++i) {
108 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), false); 108 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), false);
109 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(), 109 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(),
110 NEW_BACKGROUND_TAB, PageTransition::TYPED); 110 NEW_BACKGROUND_TAB, content::PAGE_TRANSITION_TYPED);
111 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true); 111 CheckViewID(static_cast<ViewID>(VIEW_ID_TAB_0 + i), true);
112 // VIEW_ID_TAB_LAST should always be available. 112 // VIEW_ID_TAB_LAST should always be available.
113 CheckViewID(VIEW_ID_TAB_LAST, true); 113 CheckViewID(VIEW_ID_TAB_LAST, true);
114 } 114 }
115 115
116 // Open the 11th tab. 116 // Open the 11th tab.
117 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(), 117 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(),
118 NEW_BACKGROUND_TAB, PageTransition::TYPED); 118 NEW_BACKGROUND_TAB, content::PAGE_TRANSITION_TYPED);
119 CheckViewID(VIEW_ID_TAB_LAST, true); 119 CheckViewID(VIEW_ID_TAB_LAST, true);
120 } 120 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm ('k') | chrome/browser/ui/find_bar/find_bar_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698