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

Unified Diff: chrome/browser/ui/global_error.h

Issue 10700027: browser: Move global error to subdir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm ('k') | chrome/browser/ui/global_error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/global_error.h
diff --git a/chrome/browser/ui/global_error.h b/chrome/browser/ui/global_error.h
deleted file mode 100644
index fb579f8ab75b420d920b546cc4f9a0aa3063690f..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/global_error.h
+++ /dev/null
@@ -1,78 +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_GLOBAL_ERROR_H_
-#define CHROME_BROWSER_UI_GLOBAL_ERROR_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/memory/weak_ptr.h"
-#include "base/string16.h"
-
-class Browser;
-class GlobalErrorBubbleViewBase;
-
-// This object describes a single global error.
-class GlobalError : public base::SupportsWeakPtr<GlobalError> {
- public:
- GlobalError();
- virtual ~GlobalError();
-
- // Returns true if a badge should be drawn on the wrench menu button.
- virtual bool HasBadge() = 0;
- // Returns the resource ID of the badge icon.
- virtual int GetBadgeResourceID();
-
- // Returns true if a menu item should be added to the wrench menu.
- virtual bool HasMenuItem() = 0;
- // Returns the command ID for the menu item.
- virtual int MenuItemCommandID() = 0;
- // Returns the label for the menu item.
- virtual string16 MenuItemLabel() = 0;
- // Returns the resource ID for the menu item icon.
- virtual int MenuItemIconResourceID();
- // Called when the user clicks on the menu item.
- virtual void ExecuteMenuItem(Browser* browser) = 0;
-
- // Returns true if a bubble view should be shown.
- virtual bool HasBubbleView() = 0;
- // Returns true if the bubble view has been shown.
- virtual bool HasShownBubbleView();
- // Called to show the bubble view.
- void ShowBubbleView(Browser* browser);
- // Returns the bubble view.
- virtual GlobalErrorBubbleViewBase* GetBubbleView();
- // Returns the resource ID for bubble view icon.
- virtual int GetBubbleViewIconResourceID();
- // Returns the title for the bubble view.
- virtual string16 GetBubbleViewTitle() = 0;
- // Returns the message for the bubble view.
- virtual string16 GetBubbleViewMessage() = 0;
- // Returns the accept button label for the bubble view.
- virtual string16 GetBubbleViewAcceptButtonLabel() = 0;
- // Returns the cancel button label for the bubble view. To hide the cancel
- // button return an empty string.
- virtual string16 GetBubbleViewCancelButtonLabel() = 0;
- // Called when the bubble view is closed. |browser| is the Browser that the
- // bubble view was shown on.
- void BubbleViewDidClose(Browser* browser);
- // Notifies subclasses that the bubble view is closed. |browser| is the
- // Browser that the bubble view was shown on.
- virtual void OnBubbleViewDidClose(Browser* browser) = 0;
- // Called when the user clicks on the accept button. |browser| is the
- // Browser that the bubble view was shown on.
- virtual void BubbleViewAcceptButtonPressed(Browser* browser) = 0;
- // Called when the user clicks the cancel button. |browser| is the
- // Browser that the bubble view was shown on.
- virtual void BubbleViewCancelButtonPressed(Browser* browser) = 0;
-
-
- private:
- bool has_shown_bubble_view_;
- GlobalErrorBubbleViewBase* bubble_view_;
-
- DISALLOW_COPY_AND_ASSIGN(GlobalError);
-};
-
-#endif // CHROME_BROWSER_UI_GLOBAL_ERROR_H_
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm ('k') | chrome/browser/ui/global_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698