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

Unified Diff: chrome_frame/infobars/infobar_content.h

Issue 126143005: Remove Chrome Frame code and resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to r244038 Created 6 years, 11 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_frame/iids.cc ('k') | chrome_frame/infobars/infobar_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/infobars/infobar_content.h
diff --git a/chrome_frame/infobars/infobar_content.h b/chrome_frame/infobars/infobar_content.h
deleted file mode 100644
index fd80cd0776d2b4917585d12ce6bcba1d386f7e4f..0000000000000000000000000000000000000000
--- a/chrome_frame/infobars/infobar_content.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2010 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_FRAME_INFOBARS_INFOBAR_CONTENT_H_
-#define CHROME_FRAME_INFOBARS_INFOBAR_CONTENT_H_
-
-#include <windows.h>
-
-// Provides an interface between content to be displayed in an infobar and the
-// infobar facility. Pass an instance of your implementation to
-// InfobarManager::Show, which will result in a call to InstallInFrame to
-// initialize the InfobarContent.
-//
-// The instance will be deleted by the infobar facility when it is no longer
-// being displayed (or immediately, in the case of a failure to display).
-class InfobarContent {
- public:
- // Provides access to the content's parent window and allows the
- // InfobarContent to close itself, such as in response to user interaction.
- class Frame {
- public:
- virtual ~Frame() {}
-
- // Returns the window in which the content should display itself.
- virtual HWND GetFrameWindow() = 0;
-
- // Initiates closing of the infobar.
- virtual void CloseInfobar() = 0;
- }; // class Frame
-
- virtual ~InfobarContent() {}
-
- // Prepares the content to display in the provided frame.
- //
- // The frame pointer remains valid until the InfobarContent instance is
- // deleted.
- virtual bool InstallInFrame(Frame* frame) = 0;
-
- // Provides the content with the dimensions available to it for display.
- // Dimensions are relative to the origin of the frame window.
- virtual void SetDimensions(const RECT& dimensions) = 0;
-
- // Finds the desired value for one dimension given a fixed value for the other
- // dimension. The fixed dimension parameter is non-zero whereas the requested
- // dimension parameter will be zero.
- virtual size_t GetDesiredSize(size_t width, size_t height) = 0;
-}; // class InfobarContent
-
-#endif // CHROME_FRAME_INFOBARS_INFOBAR_CONTENT_H_
« no previous file with comments | « chrome_frame/iids.cc ('k') | chrome_frame/infobars/infobar_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698