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

Side by Side Diff: chrome/browser/ui/views/page_info_bubble_view.cc

Issue 6154001: Move animation code to new ui/base/animation directory.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/page_info_bubble_view.h" 5 #include "chrome/browser/views/page_info_bubble_view.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/browser_list.h" 9 #include "chrome/browser/browser_list.h"
10 #include "chrome/browser/cert_store.h" 10 #include "chrome/browser/cert_store.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 resize_animation_.Show(); 206 resize_animation_.Show();
207 } 207 }
208 208
209 void PageInfoBubbleView::LinkActivated(views::Link* source, int event_flags) { 209 void PageInfoBubbleView::LinkActivated(views::Link* source, int event_flags) {
210 GURL url = google_util::AppendGoogleLocaleParam( 210 GURL url = google_util::AppendGoogleLocaleParam(
211 GURL(chrome::kPageInfoHelpCenterURL)); 211 GURL(chrome::kPageInfoHelpCenterURL));
212 Browser* browser = BrowserList::GetLastActive(); 212 Browser* browser = BrowserList::GetLastActive();
213 browser->OpenURL(url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK); 213 browser->OpenURL(url, GURL(), NEW_FOREGROUND_TAB, PageTransition::LINK);
214 } 214 }
215 215
216 void PageInfoBubbleView::AnimationEnded(const Animation* animation) { 216 void PageInfoBubbleView::AnimationEnded(const ui::Animation* animation) {
217 info_bubble_->SizeToContents(); 217 info_bubble_->SizeToContents();
218 } 218 }
219 219
220 void PageInfoBubbleView::AnimationProgressed(const Animation* animation) { 220 void PageInfoBubbleView::AnimationProgressed(const ui::Animation* animation) {
221 info_bubble_->SizeToContents(); 221 info_bubble_->SizeToContents();
222 } 222 }
223 223
224 //////////////////////////////////////////////////////////////////////////////// 224 ////////////////////////////////////////////////////////////////////////////////
225 // Section 225 // Section
226 226
227 Section::Section(PageInfoBubbleView* owner, 227 Section::Section(PageInfoBubbleView* owner,
228 const PageInfoModel::SectionInfo& section_info, 228 const PageInfoModel::SectionInfo& section_info,
229 const SkBitmap* state_icon, 229 const SkBitmap* state_icon,
230 bool show_cert) 230 bool show_cert)
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 PageInfoBubbleView* page_info_bubble = 346 PageInfoBubbleView* page_info_bubble =
347 new PageInfoBubbleView(parent, profile, url, ssl, show_history); 347 new PageInfoBubbleView(parent, profile, url, ssl, show_history);
348 InfoBubble* info_bubble = 348 InfoBubble* info_bubble =
349 InfoBubble::Show(browser_view->GetWidget(), bounds, 349 InfoBubble::Show(browser_view->GetWidget(), bounds,
350 BubbleBorder::TOP_LEFT, 350 BubbleBorder::TOP_LEFT,
351 page_info_bubble, page_info_bubble); 351 page_info_bubble, page_info_bubble);
352 page_info_bubble->set_info_bubble(info_bubble); 352 page_info_bubble->set_info_bubble(info_bubble);
353 } 353 }
354 354
355 } 355 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/page_info_bubble_view.h ('k') | chrome/browser/ui/views/status_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698