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

Unified Diff: views/window/native_window_win.cc

Issue 7069022: Adds a basic NativeWindowViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/window/native_window_views.cc ('k') | views/window/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/native_window_win.cc
===================================================================
--- views/window/native_window_win.cc (revision 86727)
+++ views/window/native_window_win.cc (working copy)
@@ -22,7 +22,6 @@
#include "ui/gfx/path.h"
#include "views/accessibility/native_view_accessibility_win.h"
#include "views/window/client_view.h"
-#include "views/window/custom_frame_view.h"
#include "views/window/native_window_delegate.h"
#include "views/window/native_frame_view.h"
#include "views/window/non_client_view.h"
@@ -1308,9 +1307,8 @@
}
NonClientFrameView* NativeWindowWin::CreateFrameViewForWindow() {
- if (GetWindow()->ShouldUseNativeFrame())
- return new NativeFrameView(GetWindow());
- return new CustomFrameView(GetWindow());
+ return GetWindow()->ShouldUseNativeFrame() ?
+ new NativeFrameView(GetWindow()) : NULL;
}
void NativeWindowWin::UpdateFrameAfterFrameChange() {
« no previous file with comments | « views/window/native_window_views.cc ('k') | views/window/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698