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

Side by Side Diff: ui/views/win/hwnd_message_handler.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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
« no previous file with comments | « ui/views/win/hwnd_message_handler.h ('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) 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 #include "ui/views/win/hwnd_message_handler.h" 5 #include "ui/views/win/hwnd_message_handler.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <oleacc.h> 8 #include <oleacc.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #include <tchar.h> 10 #include <tchar.h>
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 HWND hwnd_; 304 HWND hwnd_;
305 // A flag indicating that the unlock operation was canceled. 305 // A flag indicating that the unlock operation was canceled.
306 bool cancel_unlock_; 306 bool cancel_unlock_;
307 // If false, don't use redraw lock. 307 // If false, don't use redraw lock.
308 const bool should_lock_; 308 const bool should_lock_;
309 309
310 DISALLOW_COPY_AND_ASSIGN(ScopedRedrawLock); 310 DISALLOW_COPY_AND_ASSIGN(ScopedRedrawLock);
311 }; 311 };
312 312
313 // static HWNDMessageHandler member initialization. 313 // static HWNDMessageHandler member initialization.
314 base::LazyInstance<HWNDMessageHandler::FullscreenWindowMonitorMap> 314 base::LazyInstance<HWNDMessageHandler::FullscreenWindowMonitorMap>::
315 HWNDMessageHandler::fullscreen_monitor_map_ = LAZY_INSTANCE_INITIALIZER; 315 DestructorAtExit HWNDMessageHandler::fullscreen_monitor_map_ =
316 LAZY_INSTANCE_INITIALIZER;
316 317
317 //////////////////////////////////////////////////////////////////////////////// 318 ////////////////////////////////////////////////////////////////////////////////
318 // HWNDMessageHandler, public: 319 // HWNDMessageHandler, public:
319 320
320 long HWNDMessageHandler::last_touch_message_time_ = 0; 321 long HWNDMessageHandler::last_touch_message_time_ = 0;
321 322
322 HWNDMessageHandler::HWNDMessageHandler(HWNDMessageHandlerDelegate* delegate) 323 HWNDMessageHandler::HWNDMessageHandler(HWNDMessageHandlerDelegate* delegate)
323 : msg_handled_(FALSE), 324 : msg_handled_(FALSE),
324 delegate_(delegate), 325 delegate_(delegate),
325 fullscreen_handler_(new FullscreenHandler), 326 fullscreen_handler_(new FullscreenHandler),
(...skipping 2454 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 MONITORINFO monitor_info = {sizeof(monitor_info)}; 2781 MONITORINFO monitor_info = {sizeof(monitor_info)};
2781 GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTOPRIMARY), 2782 GetMonitorInfo(MonitorFromWindow(hwnd(), MONITOR_DEFAULTTOPRIMARY),
2782 &monitor_info); 2783 &monitor_info);
2783 gfx::Rect shrunk_rect(monitor_info.rcMonitor); 2784 gfx::Rect shrunk_rect(monitor_info.rcMonitor);
2784 shrunk_rect.set_height(shrunk_rect.height() - 1); 2785 shrunk_rect.set_height(shrunk_rect.height() - 1);
2785 background_fullscreen_hack_ = true; 2786 background_fullscreen_hack_ = true;
2786 SetBoundsInternal(shrunk_rect, false); 2787 SetBoundsInternal(shrunk_rect, false);
2787 } 2788 }
2788 2789
2789 } // namespace views 2790 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/win/hwnd_message_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698