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

Unified Diff: chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.cc

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.cc
diff --git a/chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.cc b/chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.cc
deleted file mode 100644
index 939d1bd55e752a8e7137be54fa83cdd44e99e38d..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 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 "chrome/browser/ui/gtk/infobars/translate_message_infobar_gtk.h"
-
-#include "base/strings/utf_string_conversions.h"
-#include "chrome/browser/translate/translate_infobar_delegate.h"
-#include "chrome/browser/ui/gtk/gtk_util.h"
-#include "ui/base/gtk/gtk_hig_constants.h"
-#include "ui/base/gtk/gtk_signal_registrar.h"
-
-TranslateMessageInfoBar::TranslateMessageInfoBar(
- scoped_ptr<TranslateInfoBarDelegate> delegate)
- : TranslateInfoBarBase(delegate.Pass()) {
-}
-
-TranslateMessageInfoBar::~TranslateMessageInfoBar() {
-}
-
-void TranslateMessageInfoBar::PlatformSpecificSetOwner() {
- TranslateInfoBarBase::PlatformSpecificSetOwner();
-
- GtkWidget* new_hbox = gtk_hbox_new(FALSE, ui::kControlSpacing);
- gtk_util::CenterWidgetInHBox(hbox(), new_hbox, false, 0);
-
- std::string text = base::UTF16ToUTF8(GetDelegate()->GetMessageInfoBarText());
- gtk_box_pack_start(GTK_BOX(new_hbox), CreateLabel(text.c_str()), FALSE, FALSE,
- 0);
- base::string16 button_text = GetDelegate()->GetMessageInfoBarButtonText();
- if (!button_text.empty()) {
- GtkWidget* button =
- gtk_button_new_with_label(base::UTF16ToUTF8(button_text).c_str());
- signals()->Connect(button, "clicked", G_CALLBACK(&OnButtonPressedThunk),
- this);
- gtk_box_pack_start(GTK_BOX(new_hbox), button, FALSE, FALSE, 0);
- }
-}
-
-void TranslateMessageInfoBar::OnButtonPressed(GtkWidget* sender) {
- GetDelegate()->MessageInfoBarButtonPressed();
-}

Powered by Google App Engine
This is Rietveld 408576698