OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |