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

Side by Side Diff: chrome/browser/ui/collected_cookies_infobar_delegate.cc

Issue 6901058: Increase infobar height and infobar button height for touch. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Undo inadvertant merge changes (hopefully). Created 9 years, 7 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/browser_init.cc ('k') | chrome/browser/ui/gtk/custom_button.cc » ('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) 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/ui/collected_cookies_infobar_delegate.h" 5 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/tab_contents/tab_contents.h" 8 #include "content/browser/tab_contents/tab_contents.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "grit/theme_resources.h" 10 #include "grit/theme_resources_standard.h"
11 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
12 #include "ui/base/resource/resource_bundle.h" 12 #include "ui/base/resource/resource_bundle.h"
13 13
14 CollectedCookiesInfoBarDelegate::CollectedCookiesInfoBarDelegate( 14 CollectedCookiesInfoBarDelegate::CollectedCookiesInfoBarDelegate(
15 TabContents* tab_contents) 15 TabContents* tab_contents)
16 : ConfirmInfoBarDelegate(tab_contents), 16 : ConfirmInfoBarDelegate(tab_contents),
17 tab_contents_(tab_contents) { 17 tab_contents_(tab_contents) {
18 } 18 }
19 19
20 gfx::Image* CollectedCookiesInfoBarDelegate::GetIcon() const { 20 gfx::Image* CollectedCookiesInfoBarDelegate::GetIcon() const {
(...skipping 16 matching lines...) Expand all
37 string16 CollectedCookiesInfoBarDelegate::GetButtonLabel(InfoBarButton button) 37 string16 CollectedCookiesInfoBarDelegate::GetButtonLabel(InfoBarButton button)
38 const { 38 const {
39 DCHECK_EQ(BUTTON_OK, button); 39 DCHECK_EQ(BUTTON_OK, button);
40 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_INFOBAR_BUTTON); 40 return l10n_util::GetStringUTF16(IDS_COLLECTED_COOKIES_INFOBAR_BUTTON);
41 } 41 }
42 42
43 bool CollectedCookiesInfoBarDelegate::Accept() { 43 bool CollectedCookiesInfoBarDelegate::Accept() {
44 tab_contents_->controller().Reload(true); 44 tab_contents_->controller().Reload(true);
45 return true; 45 return true;
46 } 46 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_init.cc ('k') | chrome/browser/ui/gtk/custom_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698