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

Side by Side Diff: chrome/browser/ui/views/extensions/bundle_installed_bubble.cc

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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) 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 "base/i18n/rtl.h" 5 #include "base/i18n/rtl.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "chrome/browser/extensions/bundle_installer.h" 7 #include "chrome/browser/extensions/bundle_installer.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/views/frame/browser_view.h" 9 #include "chrome/browser/ui/views/frame/browser_view.h"
10 #include "chrome/browser/ui/views/toolbar_view.h" 10 #include "chrome/browser/ui/views/toolbar_view.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 views::Label* heading_label = new views::Label(heading, bold_font); 146 views::Label* heading_label = new views::Label(heading, bold_font);
147 heading_label->SetMultiLine(true); 147 heading_label->SetMultiLine(true);
148 heading_label->SetHorizontalAlignment(views::Label::ALIGN_LEFT); 148 heading_label->SetHorizontalAlignment(views::Label::ALIGN_LEFT);
149 heading_label->SizeToFit(kLeftColumnWidth); 149 heading_label->SizeToFit(kLeftColumnWidth);
150 layout->AddView(heading_label); 150 layout->AddView(heading_label);
151 } 151 }
152 152
153 // views::ButtonListener implementation: 153 // views::ButtonListener implementation:
154 virtual void ButtonPressed(views::Button* sender, 154 virtual void ButtonPressed(views::Button* sender,
155 const views::Event& event) OVERRIDE { 155 const ui::Event& event) OVERRIDE {
156 StartFade(false); 156 StartFade(false);
157 } 157 }
158 158
159 DISALLOW_COPY_AND_ASSIGN(BundleInstalledBubble); 159 DISALLOW_COPY_AND_ASSIGN(BundleInstalledBubble);
160 }; 160 };
161 161
162 } // namespace 162 } // namespace
163 163
164 void BundleInstaller::ShowInstalledBubble( 164 void BundleInstaller::ShowInstalledBubble(
165 const BundleInstaller* bundle, Browser* browser) { 165 const BundleInstaller* bundle, Browser* browser) {
166 BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser); 166 BrowserView* browser_view = BrowserView::GetBrowserViewForBrowser(browser);
167 views::View* anchor = browser_view->GetToolbarView()->app_menu(); 167 views::View* anchor = browser_view->GetToolbarView()->app_menu();
168 new BundleInstalledBubble(bundle, anchor, views::BubbleBorder::TOP_RIGHT); 168 new BundleInstalledBubble(bundle, anchor, views::BubbleBorder::TOP_RIGHT);
169 } 169 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/event_utils.cc ('k') | chrome/browser/ui/views/extensions/extension_installed_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698