OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "chrome/browser/ui/web_contents_modal_dialog.h" | 9 #include "chrome/browser/ui/web_contents_modal_dialog.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 ConstrainedWindowViews(gfx::NativeView parent, | 36 ConstrainedWindowViews(gfx::NativeView parent, |
37 bool off_the_record, | 37 bool off_the_record, |
38 views::WidgetDelegate* widget_delegate); | 38 views::WidgetDelegate* widget_delegate); |
39 virtual ~ConstrainedWindowViews(); | 39 virtual ~ConstrainedWindowViews(); |
40 | 40 |
41 // Overridden from WebContentsModalDialog: | 41 // Overridden from WebContentsModalDialog: |
42 virtual void ShowWebContentsModalDialog() OVERRIDE; | 42 virtual void ShowWebContentsModalDialog() OVERRIDE; |
43 virtual void CloseWebContentsModalDialog() OVERRIDE; | 43 virtual void CloseWebContentsModalDialog() OVERRIDE; |
44 virtual void FocusWebContentsModalDialog() OVERRIDE; | 44 virtual void FocusWebContentsModalDialog() OVERRIDE; |
45 virtual void PulseWebContentsModalDialog() OVERRIDE; | 45 virtual void PulseWebContentsModalDialog() OVERRIDE; |
46 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 46 virtual gfx::NativeView GetNativeView() OVERRIDE; |
47 | 47 |
48 // Factory function for the class (temporary). | 48 // Factory function for the class (temporary). |
49 static ConstrainedWindowViews* Create(content::WebContents* web_contents, | 49 static ConstrainedWindowViews* Create(content::WebContents* web_contents, |
50 views::WidgetDelegate* widget_delegate); | 50 views::WidgetDelegate* widget_delegate); |
51 | 51 |
52 private: | 52 private: |
53 // Overridden from views::Widget: | 53 // Overridden from views::Widget: |
54 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 54 virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
55 | 55 |
56 bool off_the_record_; | 56 bool off_the_record_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowViews); | 58 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowViews); |
59 }; | 59 }; |
60 | 60 |
61 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ | 61 #endif // CHROME_BROWSER_UI_VIEWS_CONSTRAINED_WINDOW_VIEWS_H_ |
OLD | NEW |