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

Side by Side Diff: views/widget/widget.cc

Issue 6992086: Fixes bug in NativeWidgetWin::GetAcceleratedWidget. I had the ifdef (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/widget/native_widget_win.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "views/widget/widget.h" 5 #include "views/widget/widget.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "ui/gfx/compositor/compositor.h" 9 #include "ui/gfx/compositor/compositor.h"
10 #include "views/focus/view_storage.h" 10 #include "views/focus/view_storage.h"
11 #include "views/ime/input_method.h" 11 #include "views/ime/input_method.h"
12 #include "views/views_delegate.h" 12 #include "views/views_delegate.h"
13 #include "views/widget/default_theme_provider.h" 13 #include "views/widget/default_theme_provider.h"
14 #include "views/widget/root_view.h" 14 #include "views/widget/root_view.h"
15 #include "views/widget/native_widget.h" 15 #include "views/widget/native_widget.h"
16 16
17 namespace views { 17 namespace views {
18 18
19 namespace { 19 namespace {
20 // Set to true if a pure Views implementation is preferred 20 // Set to true if a pure Views implementation is preferred
21 bool use_pure_views = false; 21 bool use_pure_views = false;
22 } 22 }
23 23
24
25 //////////////////////////////////////////////////////////////////////////////// 24 ////////////////////////////////////////////////////////////////////////////////
26 // Widget, InitParams: 25 // Widget, InitParams:
27 26
28 Widget::InitParams::InitParams() 27 Widget::InitParams::InitParams()
29 : type(TYPE_WINDOW), 28 : type(TYPE_WINDOW),
30 child(false), 29 child(false),
31 transient(false), 30 transient(false),
32 transparent(false), 31 transparent(false),
33 accept_events(true), 32 accept_events(true),
34 can_activate(true), 33 can_activate(true),
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 gfx::AcceleratedWidget widget = native_widget_->GetAcceleratedWidget(); 517 gfx::AcceleratedWidget widget = native_widget_->GetAcceleratedWidget();
519 if (widget != gfx::kNullAcceleratedWidget) 518 if (widget != gfx::kNullAcceleratedWidget)
520 compositor_ = ui::Compositor::Create(widget); 519 compositor_ = ui::Compositor::Create(widget);
521 } 520 }
522 521
523 bool Widget::ShouldReleaseCaptureOnMouseReleased() const { 522 bool Widget::ShouldReleaseCaptureOnMouseReleased() const {
524 return true; 523 return true;
525 } 524 }
526 525
527 } // namespace views 526 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/native_widget_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698