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

Side by Side Diff: chrome/browser/ui/tabs/dock_info.h

Issue 9003010: Implements DockInfo for aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « no previous file | chrome/browser/ui/tabs/dock_info_aura.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_UI_TABS_DOCK_INFO_H_ 5 #ifndef CHROME_BROWSER_UI_TABS_DOCK_INFO_H_
6 #define CHROME_BROWSER_UI_TABS_DOCK_INFO_H_ 6 #define CHROME_BROWSER_UI_TABS_DOCK_INFO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // type and hot_spot are set from the supplied parameters. This is used 167 // type and hot_spot are set from the supplied parameters. This is used
168 // internally, there is no need to invoke this otherwise. 168 // internally, there is no need to invoke this otherwise.
169 bool CheckMonitorPoint(const gfx::Point& screen_loc, 169 bool CheckMonitorPoint(const gfx::Point& screen_loc,
170 int x, 170 int x,
171 int y, 171 int y,
172 Type type); 172 Type type);
173 173
174 private: 174 private:
175 // Returns the bounds of the window. 175 // Returns the bounds of the window.
176 bool GetWindowBounds(gfx::Rect* bounds) const; 176 bool GetWindowBounds(gfx::Rect* bounds) const;
177
178 // Sets the bounds of |window_| to |bounds|.
177 void SizeOtherWindowTo(const gfx::Rect& bounds) const; 179 void SizeOtherWindowTo(const gfx::Rect& bounds) const;
178 180
179 Type type_; 181 Type type_;
180 gfx::NativeWindow window_; 182 gfx::NativeWindow window_;
181 gfx::Point hot_spot_; 183 gfx::Point hot_spot_;
182 gfx::Rect monitor_bounds_; 184 gfx::Rect monitor_bounds_;
183 bool in_enable_area_; 185 bool in_enable_area_;
184 186
185 // Factory that creates DockInfos. By default this is NULL, which gives the 187 // Factory that creates DockInfos. By default this is NULL, which gives the
186 // default behavior. 188 // default behavior.
187 static Factory* factory_; 189 static Factory* factory_;
188 }; 190 };
189 191
190 #endif // CHROME_BROWSER_UI_TABS_DOCK_INFO_H_ 192 #endif // CHROME_BROWSER_UI_TABS_DOCK_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/tabs/dock_info_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698