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

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

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nib name on mac Created 6 years, 8 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 | « components/infobars/core/infobar_delegate.h ('k') | components/infobars/core/infobar_manager.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 "chrome/browser/infobars/infobar_delegate.h" 5 #include "components/infobars/core/infobar_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/infobars/infobar.h" 9 #include "components/infobars/core/infobar.h"
10 #include "chrome/browser/infobars/infobar_manager.h" 10 #include "components/infobars/core/infobar_manager.h"
11 #include "ui/base/resource/resource_bundle.h" 11 #include "ui/base/resource/resource_bundle.h"
12 12
13 namespace infobars {
14
13 const int InfoBarDelegate::kNoIconID = 0; 15 const int InfoBarDelegate::kNoIconID = 0;
14 16
15 InfoBarDelegate::~InfoBarDelegate() { 17 InfoBarDelegate::~InfoBarDelegate() {
16 } 18 }
17 19
18 InfoBarDelegate::InfoBarAutomationType 20 InfoBarDelegate::InfoBarAutomationType
19 InfoBarDelegate::GetInfoBarAutomationType() const { 21 InfoBarDelegate::GetInfoBarAutomationType() const {
20 return UNKNOWN_INFOBAR; 22 return UNKNOWN_INFOBAR;
21 } 23 }
22 24
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 100
99 InfoBarDelegate::InfoBarDelegate() : contents_unique_id_(0) { 101 InfoBarDelegate::InfoBarDelegate() : contents_unique_id_(0) {
100 } 102 }
101 103
102 bool InfoBarDelegate::ShouldExpireInternal( 104 bool InfoBarDelegate::ShouldExpireInternal(
103 const NavigationDetails& details) const { 105 const NavigationDetails& details) const {
104 // NOTE: If you change this, be sure to check and adjust the behavior of 106 // NOTE: If you change this, be sure to check and adjust the behavior of
105 // anyone who overrides this as necessary! 107 // anyone who overrides this as necessary!
106 return (contents_unique_id_ != details.entry_id) || details.is_reload; 108 return (contents_unique_id_ != details.entry_id) || details.is_reload;
107 } 109 }
110
111 } // namespace infobars
OLDNEW
« no previous file with comments | « components/infobars/core/infobar_delegate.h ('k') | components/infobars/core/infobar_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698