| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_ABOUT_INTERNETS_STATUS_VIEW_H_ | |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_ABOUT_INTERNETS_STATUS_VIEW_H_ | |
| 7 | |
| 8 #include "base/scoped_handle.h" | |
| 9 #include "chrome/browser/tab_contents/status_view.h" | |
| 10 | |
| 11 // Displays sspipes.scr in the content HWND. | |
| 12 class AboutInternetsStatusView : public StatusView { | |
| 13 public: | |
| 14 AboutInternetsStatusView(); | |
| 15 virtual ~AboutInternetsStatusView(); | |
| 16 | |
| 17 // TabContents overrides | |
| 18 virtual const std::wstring GetDefaultTitle() const; | |
| 19 virtual const std::wstring& GetTitle() const; | |
| 20 | |
| 21 // StatusView implementations | |
| 22 | |
| 23 // Starts sspipes.scr rendering into the contents HWND. (Actually, it looks | |
| 24 // like this creates a child HWND which is the same size as the contents, | |
| 25 // and draws into that. Thus, it doesn't resize properly.) | |
| 26 // TODO(devint): Fix this resizing issue. A few possibilities: | |
| 27 // 1) Restart the process a few seconds after a resize is completed. | |
| 28 // 2) Render into an invisible HWND and stretchblt to the current HWND. | |
| 29 virtual void OnCreate(const CRect& rect); | |
| 30 // Does nothing, but implementation is required by StatusView. | |
| 31 virtual void OnSize(const CRect& rect); | |
| 32 | |
| 33 private: | |
| 34 // Information about the pipes process, used to close the process when this | |
| 35 // view is destroyed. | |
| 36 ScopedHandle process_handle_; | |
| 37 | |
| 38 // Title of the page. | |
| 39 std::wstring title_; | |
| 40 | |
| 41 DISALLOW_EVIL_CONSTRUCTORS(AboutInternetsStatusView); | |
| 42 }; | |
| 43 | |
| 44 #endif // CHROME_BROWSER_TAB_CONTENTS_ABOUT_INTERNETS_STATUS_VIEW_H_ | |
| 45 | |
| OLD | NEW |