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

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

Issue 2478583004: implementation for new duplicate download UI (Closed)
Patch Set: 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Unique identifier for every InfoBarDelegate subclass. 67 // Unique identifier for every InfoBarDelegate subclass.
68 // KEEP IN SYNC WITH THE InfoBarIdentifier ENUM IN histograms.xml. 68 // KEEP IN SYNC WITH THE InfoBarIdentifier ENUM IN histograms.xml.
69 // NEW VALUES MUST BE APPENDED AND AVOID CHANGING ANY PRE-EXISTING VALUES. 69 // NEW VALUES MUST BE APPENDED AND AVOID CHANGING ANY PRE-EXISTING VALUES.
70 // A Java counterpart will be generated for this enum. 70 // A Java counterpart will be generated for this enum.
71 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.infobar 71 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.infobar
72 enum InfoBarIdentifier { 72 enum InfoBarIdentifier {
73 INVALID = -1, 73 INVALID = -1,
74 TEST_INFOBAR = 0, 74 TEST_INFOBAR = 0,
75 APP_BANNER_INFOBAR_DELEGATE_ANDROID = 1, 75 APP_BANNER_INFOBAR_DELEGATE_ANDROID = 1,
76 APP_BANNER_INFOBAR_DELEGATE_DESKTOP = 2, 76 APP_BANNER_INFOBAR_DELEGATE_DESKTOP = 2,
77 ANDROID_DOWNLOAD_MANAGER_OVERWRITE_INFOBAR_DELEGATE = 3, 77 ANDROID_DOWNLOAD_MANAGER_DUPLICATE_INFOBAR_DELEGATE = 3,
78 CHROME_DOWNLOAD_MANAGER_OVERWRITE_INFOBAR_DELEGATE = 4, 78 CHROME_DUPLICATE_DOWNLOAD_INFOBAR_DELEGATE = 4,
Peter Kasting 2016/11/05 00:26:57 Is changing these OK, in terms of getting histogra
gone 2016/11/07 19:45:56 AFAICT they're expanding the scope of the overwrit
qinmin 2016/11/08 00:30:50 These enums represents how the infobar is generate
79 DOWNLOAD_REQUEST_INFOBAR_DELEGATE_ANDROID = 5, 79 DOWNLOAD_REQUEST_INFOBAR_DELEGATE_ANDROID = 5,
80 // Removed: FULLSCREEN_INFOBAR_DELEGATE = 6, 80 // Removed: FULLSCREEN_INFOBAR_DELEGATE = 6,
81 HUNG_PLUGIN_INFOBAR_DELEGATE = 7, 81 HUNG_PLUGIN_INFOBAR_DELEGATE = 7,
82 HUNG_RENDERER_INFOBAR_DELEGATE = 8, 82 HUNG_RENDERER_INFOBAR_DELEGATE = 8,
83 MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID = 9, 83 MEDIA_STREAM_INFOBAR_DELEGATE_ANDROID = 9,
84 MEDIA_THROTTLE_INFOBAR_DELEGATE = 10, 84 MEDIA_THROTTLE_INFOBAR_DELEGATE = 10,
85 REQUEST_QUOTA_INFOBAR_DELEGATE = 11, 85 REQUEST_QUOTA_INFOBAR_DELEGATE = 11,
86 DEV_TOOLS_CONFIRM_INFOBAR_DELEGATE = 12, 86 DEV_TOOLS_CONFIRM_INFOBAR_DELEGATE = 12,
87 EXTENSION_DEV_TOOLS_INFOBAR_DELEGATE = 13, 87 EXTENSION_DEV_TOOLS_INFOBAR_DELEGATE = 13,
88 INCOGNITO_CONNECTABILITY_INFOBAR_DELEGATE = 14, 88 INCOGNITO_CONNECTABILITY_INFOBAR_DELEGATE = 14,
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 245
246 // The ID of the active navigation entry at the time we became owned. 246 // The ID of the active navigation entry at the time we became owned.
247 int nav_entry_id_; 247 int nav_entry_id_;
248 248
249 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate); 249 DISALLOW_COPY_AND_ASSIGN(InfoBarDelegate);
250 }; 250 };
251 251
252 } // namespace infobars 252 } // namespace infobars
253 253
254 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_ 254 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698