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

Side by Side Diff: components/infobars/core/infobar_delegate.h

Issue 2478583004: implementation for new duplicate download UI (Closed)
Patch Set: do null check on webcontents Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/android/infobars/infobar_android.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Unique identifier for every InfoBarDelegate subclass. 69 // Unique identifier for every InfoBarDelegate subclass.
70 // KEEP IN SYNC WITH THE InfoBarIdentifier ENUM IN histograms.xml. 70 // KEEP IN SYNC WITH THE InfoBarIdentifier ENUM IN histograms.xml.
71 // NEW VALUES MUST BE APPENDED AND AVOID CHANGING ANY PRE-EXISTING VALUES. 71 // NEW VALUES MUST BE APPENDED AND AVOID CHANGING ANY PRE-EXISTING VALUES.
72 // A Java counterpart will be generated for this enum. 72 // A Java counterpart will be generated for this enum.
73 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.infobar 73 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.infobar
74 enum InfoBarIdentifier { 74 enum InfoBarIdentifier {
75 INVALID = -1, 75 INVALID = -1,
76 TEST_INFOBAR = 0, 76 TEST_INFOBAR = 0,
77 APP_BANNER_INFOBAR_DELEGATE_ANDROID = 1, 77 APP_BANNER_INFOBAR_DELEGATE_ANDROID = 1,
78 APP_BANNER_INFOBAR_DELEGATE_DESKTOP = 2, 78 APP_BANNER_INFOBAR_DELEGATE_DESKTOP = 2,
79 ANDROID_DOWNLOAD_MANAGER_OVERWRITE_INFOBAR_DELEGATE = 3, 79 ANDROID_DOWNLOAD_MANAGER_DUPLICATE_INFOBAR_DELEGATE = 3,
80 CHROME_DOWNLOAD_MANAGER_OVERWRITE_INFOBAR_DELEGATE = 4, 80 CHROME_DUPLICATE_DOWNLOAD_INFOBAR_DELEGATE = 4,
81 DOWNLOAD_REQUEST_INFOBAR_DELEGATE_ANDROID = 5, 81 DOWNLOAD_REQUEST_INFOBAR_DELEGATE_ANDROID = 5,
82 // Removed: FULLSCREEN_INFOBAR_DELEGATE = 6, 82 // Removed: FULLSCREEN_INFOBAR_DELEGATE = 6,
83 HUNG_PLUGIN_INFOBAR_DELEGATE = 7, 83 HUNG_PLUGIN_INFOBAR_DELEGATE = 7,
84 HUNG_RENDERER_INFOBAR_DELEGATE = 8, 84 HUNG_RENDERER_INFOBAR_DELEGATE = 8,
85 MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID = 9, 85 MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID = 9,
86 MEDIA_THROTTLE_INFOBAR_DELEGATE = 10, 86 MEDIA_THROTTLE_INFOBAR_DELEGATE = 10,
87 REQUEST_QUOTA_INFOBAR_DELEGATE = 11, 87 REQUEST_QUOTA_INFOBAR_DELEGATE = 11,
88 DEV_TOOLS_CONFIRM_INFOBAR_DELEGATE = 12, 88 DEV_TOOLS_CONFIRM_INFOBAR_DELEGATE = 12,
89 EXTENSION_DEV_TOOLS_INFOBAR_DELEGATE = 13, 89 EXTENSION_DEV_TOOLS_INFOBAR_DELEGATE = 13,
90 INCOGNITO_CONNECTABILITY_INFOBAR_DELEGATE = 14, 90 INCOGNITO_CONNECTABILITY_INFOBAR_DELEGATE = 14,
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 248
249 // The ID of the active navigation entry at the time we became owned. 249 // The ID of the active navigation entry at the time we became owned.
250 int nav_entry_id_; 250 int nav_entry_id_;
251 251
252 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 252 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
253 }; 253 };
254 254
255 } // namespace infobars 255 } // namespace infobars
256 256
257 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 257 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/infobars/infobar_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698