| Index: chrome/browser/tab_contents/geoloc_infobar_delegate.cc
|
| ===================================================================
|
| --- chrome/browser/tab_contents/geoloc_infobar_delegate.cc (revision 0)
|
| +++ chrome/browser/tab_contents/geoloc_infobar_delegate.cc (revision 0)
|
| @@ -0,0 +1,27 @@
|
| +// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use
|
| +// of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "base/gfx/gtk_util.h"
|
| +#include "chrome/browser/gtk/infobar_gtk.h"
|
| +#include "chrome/browser/tab_contents/customize_geoloc_infobar_delegate.h"
|
| +#include "chrome/browser/tab_contents/geoloc_infobar_delegate.h"
|
| +#include "chrome/browser/tab_contents/tab_contents.h"
|
| +
|
| +GeolocInfoBarDelegate::GeolocInfoBarDelegate(TabContents* contents)
|
| + : ConfirmInfoBarDelegate(contents),
|
| + parent_contents_(contents),
|
| + customize_clicked_(false),
|
| + learn_more_clicked_(false) {
|
| + const double top[3] =
|
| + {66.0 / 255.0, 109.0 / 255.0, 201.0 / 255.0};
|
| + const double bottom[3] =
|
| + {99.0 / 255.0, 145.0 / 255.0, 222.0 / 255.0};
|
| + style_.reset(new InfoBarStyle(top, bottom, 60, gfx::kGdkWhite, true));
|
| +}
|
| +
|
| +void GeolocInfoBarDelegate::InfoBarClosed() {
|
| + if (customize_clicked_)
|
| + parent_contents_->AddInfoBar(new CustomizeGeolocInfoBarDelegate(parent_contents_));
|
| + delete this;
|
| +}
|
|
|
| Property changes on: chrome/browser/tab_contents/geoloc_infobar_delegate.cc
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|