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

Side by Side Diff: chrome/browser/ui/gtk/view_id_util_browsertest.cc

Issue 6250141: Sidebar mini tabs UI (views version).... 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
« no previous file with comments | « chrome/browser/ui/cocoa/view_id_util_browsertest.mm ('k') | chrome/browser/ui/view_ids.h » ('j') | 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) 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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include "chrome/browser/browser_window.h" 7 #include "chrome/browser/browser_window.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/gtk/view_id_util.h" 9 #include "chrome/browser/ui/gtk/view_id_util.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
(...skipping 21 matching lines...) Expand all
32 // VIEW_ID_FIND_IN_PAGE_TEXT_FIELD and VIEW_ID_FIND_IN_PAGE. 32 // VIEW_ID_FIND_IN_PAGE_TEXT_FIELD and VIEW_ID_FIND_IN_PAGE.
33 browser()->ShowFindBar(); 33 browser()->ShowFindBar();
34 34
35 for (int i = VIEW_ID_TOOLBAR; i < VIEW_ID_PREDEFINED_COUNT; ++i) { 35 for (int i = VIEW_ID_TOOLBAR; i < VIEW_ID_PREDEFINED_COUNT; ++i) {
36 // The following ids are used only in views implementation. 36 // The following ids are used only in views implementation.
37 if (i == VIEW_ID_CONTENTS_SPLIT || 37 if (i == VIEW_ID_CONTENTS_SPLIT ||
38 i == VIEW_ID_INFO_BAR_CONTAINER || 38 i == VIEW_ID_INFO_BAR_CONTAINER ||
39 i == VIEW_ID_DOWNLOAD_SHELF || 39 i == VIEW_ID_DOWNLOAD_SHELF ||
40 i == VIEW_ID_BOOKMARK_BAR_ELEMENT || 40 i == VIEW_ID_BOOKMARK_BAR_ELEMENT ||
41 i == VIEW_ID_TAB || 41 i == VIEW_ID_TAB ||
42 i == VIEW_ID_SIDE_BAR_CONTAINER || 42 i == VIEW_ID_SIDEBAR_CONTAINER ||
43 i == VIEW_ID_SIDE_BAR_SPLIT || 43 i == VIEW_ID_SIDEBAR_SPLIT ||
44 i == VIEW_ID_FEEDBACK_BUTTON) { 44 i == VIEW_ID_FEEDBACK_BUTTON) {
45 continue; 45 continue;
46 } 46 }
47 47
48 CheckViewID(static_cast<ViewID>(i), true); 48 CheckViewID(static_cast<ViewID>(i), true);
49 } 49 }
50 50
51 CheckViewID(VIEW_ID_PREDEFINED_COUNT, false); 51 CheckViewID(VIEW_ID_PREDEFINED_COUNT, false);
52 } 52 }
53 53
54 IN_PROC_BROWSER_TEST_F(ViewIDTest, Delegate) { 54 IN_PROC_BROWSER_TEST_F(ViewIDTest, Delegate) {
55 CheckViewID(VIEW_ID_TAB_0, true); 55 CheckViewID(VIEW_ID_TAB_0, true);
56 CheckViewID(VIEW_ID_TAB_1, false); 56 CheckViewID(VIEW_ID_TAB_1, false);
57 57
58 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(), 58 browser()->OpenURL(GURL(chrome::kAboutBlankURL), GURL(),
59 NEW_BACKGROUND_TAB, PageTransition::TYPED); 59 NEW_BACKGROUND_TAB, PageTransition::TYPED);
60 60
61 CheckViewID(VIEW_ID_TAB_0, true); 61 CheckViewID(VIEW_ID_TAB_0, true);
62 CheckViewID(VIEW_ID_TAB_1, true); 62 CheckViewID(VIEW_ID_TAB_1, true);
63 } 63 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/view_id_util_browsertest.mm ('k') | chrome/browser/ui/view_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698