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

Side by Side Diff: ui/views/window/dialog_delegate.h

Issue 14742002: Render opaque border with no shadow for web contents modal dialogs under Views/Win32 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ChromeOS build failure Created 7 years, 7 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
« no previous file with comments | « ui/views/bubble/bubble_frame_view.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 5 #ifndef UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "ui/base/accessibility/accessibility_types.h" 10 #include "ui/base/accessibility/accessibility_types.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual bool Accept(); 81 virtual bool Accept();
82 82
83 // Overridden from WidgetDelegate: 83 // Overridden from WidgetDelegate:
84 virtual View* GetInitiallyFocusedView() OVERRIDE; 84 virtual View* GetInitiallyFocusedView() OVERRIDE;
85 virtual DialogDelegate* AsDialogDelegate() OVERRIDE; 85 virtual DialogDelegate* AsDialogDelegate() OVERRIDE;
86 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE; 86 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE;
87 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; 87 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE;
88 88
89 // Create a frame view using the new dialog style. 89 // Create a frame view using the new dialog style.
90 static NonClientFrameView* CreateNewStyleFrameView(Widget* widget); 90 static NonClientFrameView* CreateNewStyleFrameView(Widget* widget);
91 // The semi-transparent border and shadow of the new style frame view does not
92 // work on child windows under Views/Win32. This is a kludge to get a
93 // reasonable-looking opaque border for the dialog. Note that this does not
94 // support arrows.
95 //
96 // TODO(wittman): Remove once WinAura is in place.
97 static NonClientFrameView* CreateNewStyleFrameView(Widget* widget,
98 bool force_opaque_border);
91 99
92 // Called when the window has been closed. 100 // Called when the window has been closed.
93 virtual void OnClose() {} 101 virtual void OnClose() {}
94 102
95 // A helper for accessing the DialogClientView object contained by this 103 // A helper for accessing the DialogClientView object contained by this
96 // delegate's Window. 104 // delegate's Window.
97 const DialogClientView* GetDialogClientView() const; 105 const DialogClientView* GetDialogClientView() const;
98 DialogClientView* GetDialogClientView(); 106 DialogClientView* GetDialogClientView();
99 107
100 protected: 108 protected:
(...skipping 22 matching lines...) Expand all
123 virtual const Widget* GetWidget() const OVERRIDE; 131 virtual const Widget* GetWidget() const OVERRIDE;
124 virtual View* GetContentsView() OVERRIDE; 132 virtual View* GetContentsView() OVERRIDE;
125 133
126 private: 134 private:
127 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 135 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
128 }; 136 };
129 137
130 } // namespace views 138 } // namespace views
131 139
132 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 140 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/bubble/bubble_frame_view.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698