Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 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_PRINTING_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_ | |
| 6 #define CHROME_BROWSER_PRINTING_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "content/public/browser/web_contents_observer.h" | |
| 10 #include "ui/gfx/native_widget_types.h" | |
| 11 | |
| 12 // Wrapper used to keep track of the lifetime of a WebContents. | |
| 13 // Lives on the UI thread. | |
| 14 class PrintingUIWebContentsObserver : public content::WebContentsObserver { | |
| 15 public: | |
| 16 explicit PrintingUIWebContentsObserver(content::WebContents* web_contents); | |
| 17 | |
| 18 // If the observed WebContents is valid, return true and put its parent | |
| 19 // NativeView in |parent_view|. | |
| 20 bool GetParentView(gfx::NativeView* parent_view); | |
|
Vitaly Buka (NO REVIEWS)
2013/10/16 05:14:24
Why not just return gfx::NativeView*
Lei Zhang
2013/10/16 19:20:37
Hmm, gfx::NativeView is a foo* on most platforms,
| |
| 21 | |
| 22 private: | |
| 23 DISALLOW_COPY_AND_ASSIGN(PrintingUIWebContentsObserver); | |
| 24 }; | |
| 25 | |
| 26 #endif // CHROME_BROWSER_PRINTING_PRINTING_UI_WEB_CONTENTS_OBSERVER_H_ | |
| OLD | NEW |