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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_prompt_view.cc

Issue 11377005: Replace Label::Alignment with gfx::HorizontalAlignment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix remaining Label::Alignment references. Created 8 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 | Annotate | Revision Log
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/ui/views/bookmarks/bookmark_prompt_view.h" 5 #include "chrome/browser/ui/views/bookmarks/bookmark_prompt_view.h"
6 6
7 #include "chrome/browser/ui/bookmarks/bookmark_prompt_controller.h" 7 #include "chrome/browser/ui/bookmarks/bookmark_prompt_controller.h"
8 #include "grit/generated_resources.h" 8 #include "grit/generated_resources.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 views::Label* label = new views::Label(l10n_util::GetStringUTF16( 54 views::Label* label = new views::Label(l10n_util::GetStringUTF16(
55 IDS_BOOKMARK_PROMPT_MESSAGE)); 55 IDS_BOOKMARK_PROMPT_MESSAGE));
56 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 56 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
57 label->SetFont(rb.GetFont(ui::ResourceBundle::MediumFont) 57 label->SetFont(rb.GetFont(ui::ResourceBundle::MediumFont)
58 .DeriveFont(0, gfx::Font::BOLD)); 58 .DeriveFont(0, gfx::Font::BOLD));
59 AddChildView(label); 59 AddChildView(label);
60 60
61 dismiss_link_ = new views::Link(l10n_util::GetStringUTF16( 61 dismiss_link_ = new views::Link(l10n_util::GetStringUTF16(
62 IDS_BOOKMARK_PROMPT_DISMISS)); 62 IDS_BOOKMARK_PROMPT_DISMISS));
63 dismiss_link_->SetHorizontalAlignment(views::Label::ALIGN_RIGHT); 63 dismiss_link_->SetHorizontalAlignment(gfx::ALIGN_RIGHT);
64 dismiss_link_->set_listener(this); 64 dismiss_link_->set_listener(this);
65 AddChildView(dismiss_link_); 65 AddChildView(dismiss_link_);
66 } 66 }
67 67
68 void BookmarkPromptView::LinkClicked(views::Link* source, int event_flags) { 68 void BookmarkPromptView::LinkClicked(views::Link* source, int event_flags) {
69 DCHECK_EQ(source, dismiss_link_); 69 DCHECK_EQ(source, dismiss_link_);
70 BookmarkPromptController::DisableBookmarkPrompt(prefs_); 70 BookmarkPromptController::DisableBookmarkPrompt(prefs_);
71 StartFade(false); 71 StartFade(false);
72 } 72 }
73 73
74 void BookmarkPromptView::WindowClosing() { 74 void BookmarkPromptView::WindowClosing() {
75 bookmark_bubble_ = NULL; 75 bookmark_bubble_ = NULL;
76 BookmarkPromptController::ClosingBookmarkPrompt(); 76 BookmarkPromptController::ClosingBookmarkPrompt();
77 } 77 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/avatar_menu_bubble_view.cc ('k') | chrome/browser/ui/views/collected_cookies_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698