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

Side by Side Diff: chrome/browser/ui/views/constrained_window_views.h

Issue 12224020: Use gfx::NativeView rather than gfx::NativeWindow to identify web contents modal dialogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698