| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use |
| 2 // of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/gfx/gtk_util.h" |
| 6 #include "chrome/browser/gtk/infobar_gtk.h" |
| 7 #include "chrome/browser/tab_contents/customize_geoloc_infobar_delegate.h" |
| 8 #include "chrome/browser/tab_contents/geoloc_infobar_delegate.h" |
| 9 #include "chrome/browser/tab_contents/tab_contents.h" |
| 10 |
| 11 GeolocInfoBarDelegate::GeolocInfoBarDelegate(TabContents* contents) |
| 12 : ConfirmInfoBarDelegate(contents), |
| 13 parent_contents_(contents), |
| 14 customize_clicked_(false), |
| 15 learn_more_clicked_(false) { |
| 16 const double top[3] = |
| 17 {66.0 / 255.0, 109.0 / 255.0, 201.0 / 255.0}; |
| 18 const double bottom[3] = |
| 19 {99.0 / 255.0, 145.0 / 255.0, 222.0 / 255.0}; |
| 20 style_.reset(new InfoBarStyle(top, bottom, 60, gfx::kGdkWhite, true)); |
| 21 } |
| 22 |
| 23 void GeolocInfoBarDelegate::InfoBarClosed() { |
| 24 if (customize_clicked_) |
| 25 parent_contents_->AddInfoBar(new CustomizeGeolocInfoBarDelegate(parent_conte
nts_)); |
| 26 delete this; |
| 27 } |
| OLD | NEW |