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

Side by Side Diff: chrome/browser/ui/tabs/dock_info_win.cc

Issue 6040002: Remove more 'using' declarations of Scoped* from scoped_handle_win.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typedef Created 9 years, 11 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 | « chrome/browser/aeropeek_manager.cc ('k') | chrome/browser/ui/views/dropdown_bar_host.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/ui/tabs/dock_info.h" 5 #include "chrome/browser/ui/tabs/dock_info.h"
6 6
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/browser_list.h" 8 #include "chrome/browser/ui/browser_list.h"
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 #include "chrome/browser/views/frame/browser_view.h" 10 #include "chrome/browser/views/frame/browser_view.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // The window we're looking for. 122 // The window we're looking for.
123 HWND target_; 123 HWND target_;
124 124
125 // Location of window to find. 125 // Location of window to find.
126 gfx::Point screen_loc_; 126 gfx::Point screen_loc_;
127 127
128 // Is target_ the top most window? This is initially false but set to true 128 // Is target_ the top most window? This is initially false but set to true
129 // in ShouldStopIterating if target_ is passed in. 129 // in ShouldStopIterating if target_ is passed in.
130 bool is_top_most_; 130 bool is_top_most_;
131 131
132 ScopedRegion tmp_region_; 132 base::win::ScopedRegion tmp_region_;
133 133
134 DISALLOW_COPY_AND_ASSIGN(TopMostFinder); 134 DISALLOW_COPY_AND_ASSIGN(TopMostFinder);
135 }; 135 };
136 136
137 // WindowFinder --------------------------------------------------------------- 137 // WindowFinder ---------------------------------------------------------------
138 138
139 // Helper class to determine if a particular point contains a window from our 139 // Helper class to determine if a particular point contains a window from our
140 // process. 140 // process.
141 class LocalProcessWindowFinder : public BaseWindowFinder { 141 class LocalProcessWindowFinder : public BaseWindowFinder {
142 public: 142 public:
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 void DockInfo::SizeOtherWindowTo(const gfx::Rect& bounds) const { 317 void DockInfo::SizeOtherWindowTo(const gfx::Rect& bounds) const {
318 if (IsZoomed(window())) { 318 if (IsZoomed(window())) {
319 // We're docking relative to another window, we need to make sure the 319 // We're docking relative to another window, we need to make sure the
320 // window we're docking to isn't maximized. 320 // window we're docking to isn't maximized.
321 ShowWindow(window(), SW_RESTORE | SW_SHOWNA); 321 ShowWindow(window(), SW_RESTORE | SW_SHOWNA);
322 } 322 }
323 SetWindowPos(window(), HWND_TOP, bounds.x(), bounds.y(), bounds.width(), 323 SetWindowPos(window(), HWND_TOP, bounds.x(), bounds.y(), bounds.width(),
324 bounds.height(), SWP_NOACTIVATE | SWP_NOOWNERZORDER); 324 bounds.height(), SWP_NOACTIVATE | SWP_NOOWNERZORDER);
325 } 325 }
OLDNEW
« no previous file with comments | « chrome/browser/aeropeek_manager.cc ('k') | chrome/browser/ui/views/dropdown_bar_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698