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

Side by Side Diff: chrome/browser/tab_contents/infobar_delegate.cc

Issue 6574011: Cleanup:... (Closed) Base URL: svn://chrome-svn/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
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 "chrome/browser/tab_contents/infobar_delegate.h" 5 #include "chrome/browser/tab_contents/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/tab_contents/navigation_entry.h" 9 #include "chrome/browser/tab_contents/navigation_entry.h"
10 #include "chrome/browser/tab_contents/navigation_controller.h" 10 #include "chrome/browser/tab_contents/navigation_controller.h"
11 #include "chrome/browser/tab_contents/tab_contents.h" 11 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "grit/generated_resources.h" 12 #include "grit/generated_resources.h"
13 #include "ui/base/l10n/l10n_util.h" 13 #include "ui/base/l10n/l10n_util.h"
14 14
15 // LinkInfoBarDelegate -------------------------------------------------------- 15 // LinkInfoBarDelegate --------------------------------------------------------
16 16
17 string16 LinkInfoBarDelegate::GetMessageTextWithOffset(
18 size_t* link_offset) const {
19 *link_offset = string16::npos;
20 return string16();
21 }
22
23 bool LinkInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) { 17 bool LinkInfoBarDelegate::LinkClicked(WindowOpenDisposition disposition) {
24 return true; 18 return true;
25 } 19 }
26 20
27 LinkInfoBarDelegate::LinkInfoBarDelegate(TabContents* contents) 21 LinkInfoBarDelegate::LinkInfoBarDelegate(TabContents* contents)
28 : InfoBarDelegate(contents) { 22 : InfoBarDelegate(contents) {
29 } 23 }
30 24
31 LinkInfoBarDelegate::~LinkInfoBarDelegate() { 25 LinkInfoBarDelegate::~LinkInfoBarDelegate() {
32 } 26 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 return icon_; 108 return icon_;
115 } 109 }
116 110
117 string16 SimpleAlertInfoBarDelegate::GetMessageText() const { 111 string16 SimpleAlertInfoBarDelegate::GetMessageText() const {
118 return message_; 112 return message_;
119 } 113 }
120 114
121 int SimpleAlertInfoBarDelegate::GetButtons() const { 115 int SimpleAlertInfoBarDelegate::GetButtons() const {
122 return BUTTON_NONE; 116 return BUTTON_NONE;
123 } 117 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/infobar_delegate.h ('k') | chrome/browser/ui/cocoa/infobars/infobar_test_helper.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698