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

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

Issue 9443007: Add Chrome To Mobile Service and Views Page Action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bail on empty GetOAuth2LoginRefreshToken(). Created 8 years, 9 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/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/panels/panel.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) 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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_window.h" 8 #include "chrome/browser/ui/browser_window.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 25 matching lines...) Expand all
36 36
37 for (int i = VIEW_ID_TOOLBAR; i < VIEW_ID_PREDEFINED_COUNT; ++i) { 37 for (int i = VIEW_ID_TOOLBAR; i < VIEW_ID_PREDEFINED_COUNT; ++i) {
38 // The following ids are used only in views implementation. 38 // The following ids are used only in views implementation.
39 if (i == VIEW_ID_CONTENTS_SPLIT || 39 if (i == VIEW_ID_CONTENTS_SPLIT ||
40 i == VIEW_ID_INFO_BAR_CONTAINER || 40 i == VIEW_ID_INFO_BAR_CONTAINER ||
41 i == VIEW_ID_DEV_TOOLS_DOCKED || 41 i == VIEW_ID_DEV_TOOLS_DOCKED ||
42 i == VIEW_ID_DOWNLOAD_SHELF || 42 i == VIEW_ID_DOWNLOAD_SHELF ||
43 i == VIEW_ID_BOOKMARK_BAR_ELEMENT || 43 i == VIEW_ID_BOOKMARK_BAR_ELEMENT ||
44 i == VIEW_ID_TAB || 44 i == VIEW_ID_TAB ||
45 i == VIEW_ID_FEEDBACK_BUTTON || 45 i == VIEW_ID_FEEDBACK_BUTTON ||
46 i == VIEW_ID_OMNIBOX) { 46 i == VIEW_ID_OMNIBOX ||
47 i == VIEW_ID_CHROME_TO_MOBILE_BUTTON) {
47 continue; 48 continue;
48 } 49 }
49 50
50 CheckViewID(static_cast<ViewID>(i), true); 51 CheckViewID(static_cast<ViewID>(i), true);
51 } 52 }
52 53
53 CheckViewID(VIEW_ID_PREDEFINED_COUNT, false); 54 CheckViewID(VIEW_ID_PREDEFINED_COUNT, false);
54 } 55 }
55 56
56 IN_PROC_BROWSER_TEST_F(ViewIDTest, Delegate) { 57 IN_PROC_BROWSER_TEST_F(ViewIDTest, Delegate) {
57 CheckViewID(VIEW_ID_TAB_0, true); 58 CheckViewID(VIEW_ID_TAB_0, true);
58 CheckViewID(VIEW_ID_TAB_1, false); 59 CheckViewID(VIEW_ID_TAB_1, false);
59 60
60 browser()->OpenURL(OpenURLParams(GURL(chrome::kAboutBlankURL), 61 browser()->OpenURL(OpenURLParams(GURL(chrome::kAboutBlankURL),
61 content::Referrer(), 62 content::Referrer(),
62 NEW_BACKGROUND_TAB, content::PAGE_TRANSITION_TYPED, 63 NEW_BACKGROUND_TAB, content::PAGE_TRANSITION_TYPED,
63 false)); 64 false));
64 65
65 CheckViewID(VIEW_ID_TAB_0, true); 66 CheckViewID(VIEW_ID_TAB_0, true);
66 CheckViewID(VIEW_ID_TAB_1, true); 67 CheckViewID(VIEW_ID_TAB_1, true);
67 } 68 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698