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

Unified Diff: chrome/browser/ui/gtk/confirm_bubble_gtk.h

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/confirm_bubble_gtk.h
diff --git a/chrome/browser/ui/gtk/confirm_bubble_gtk.h b/chrome/browser/ui/gtk/confirm_bubble_gtk.h
deleted file mode 100644
index b7c939efa2c0dd42042410de6c89fdaa16489ca6..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/gtk/confirm_bubble_gtk.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef CHROME_BROWSER_UI_GTK_CONFIRM_BUBBLE_GTK_H_
-#define CHROME_BROWSER_UI_GTK_CONFIRM_BUBBLE_GTK_H_
-
-#include "base/compiler_specific.h"
-#include "base/gtest_prod_util.h"
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
-#include "ui/base/gtk/gtk_signal.h"
-#include "ui/gfx/native_widget_types.h"
-
-typedef struct _GtkWidget GtkWidget;
-
-class ConfirmBubbleModel;
-class CustomDrawButton;
-
-// A class that implements a bubble that consists of the following items:
-// * one icon ("icon")
-// * one title text ("title")
-// * one close button ("x")
-// * one message text ("message")
-// * one optional link ("link")
-// * two optional buttons ("ok" and "cancel")
-//
-// This bubble is convenient when we wish to ask transient, non-blocking
-// questions. Unlike a dialog, a bubble menu disappears when we click outside of
-// its window to avoid blocking user operations. A bubble is laid out as
-// follows:
-//
-// +------------------------+
-// | icon title x |
-// | message |
-// | link |
-// | [Cancel] [OK] |
-// +------------------------+
-//
-class ConfirmBubbleGtk : public BubbleDelegateGtk {
- public:
- ConfirmBubbleGtk(gfx::NativeView parent,
- const gfx::Point& anchor_point,
- ConfirmBubbleModel* model);
- virtual ~ConfirmBubbleGtk();
-
- // BubbleDelegateGtk implementation.
- virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE;
-
- // Create a bubble and show it.
- void Show();
-
- private:
- FRIEND_TEST_ALL_PREFIXES(ConfirmBubbleGtkTest, ClickCancel);
- FRIEND_TEST_ALL_PREFIXES(ConfirmBubbleGtkTest, ClickOk);
- FRIEND_TEST_ALL_PREFIXES(ConfirmBubbleGtkTest, ClickLink);
-
- // GTK event handlers.
- CHROMEGTK_CALLBACK_0(ConfirmBubbleGtk, void, OnDestroy);
- CHROMEGTK_CALLBACK_0(ConfirmBubbleGtk, void, OnCloseButton);
- CHROMEGTK_CALLBACK_0(ConfirmBubbleGtk, void, OnOkButton);
- CHROMEGTK_CALLBACK_0(ConfirmBubbleGtk, void, OnCancelButton);
- CHROMEGTK_CALLBACK_0(ConfirmBubbleGtk, void, OnLinkButton);
-
- // The bubble.
- BubbleGtk* bubble_;
-
- // The anchor window and the screen point where this bubble is anchored. This
- // class shows a bubble under this point.
- gfx::NativeView anchor_;
- gfx::Point anchor_point_;
-
- // The model to customize this bubble view.
- scoped_ptr<ConfirmBubbleModel> model_;
-
- // The x that closes this bubble.
- scoped_ptr<CustomDrawButton> close_button_;
-
- DISALLOW_COPY_AND_ASSIGN(ConfirmBubbleGtk);
-};
-
-#endif // CHROME_BROWSER_UI_GTK_CONFIRM_BUBBLE_GTK_H_

Powered by Google App Engine
This is Rietveld 408576698