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

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

Issue 179028: Revert "Fix a ton of compiler warnings." (Closed)
Patch Set: Created 11 years, 3 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 | « chrome/browser/command_updater.h ('k') | chrome/browser/download/download_manager.h » ('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) 2006-2008 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_DOCK_INFO_H_ 5 #ifndef CHROME_BROWSER_DOCK_INFO_H_
6 #define CHROME_BROWSER_DOCK_INFO_H_ 6 #define CHROME_BROWSER_DOCK_INFO_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/gfx/native_widget_types.h" 10 #include "base/gfx/native_widget_types.h"
11 #include "base/gfx/point.h" 11 #include "base/gfx/point.h"
(...skipping 13 matching lines...) Expand all
25 public: 25 public:
26 class Factory { 26 class Factory {
27 public: 27 public:
28 virtual DockInfo GetDockInfoAtPoint( 28 virtual DockInfo GetDockInfoAtPoint(
29 const gfx::Point& screen_point, 29 const gfx::Point& screen_point,
30 const std::set<gfx::NativeView>& ignore) = 0; 30 const std::set<gfx::NativeView>& ignore) = 0;
31 31
32 virtual gfx::NativeWindow GetLocalProcessWindowAtPoint( 32 virtual gfx::NativeWindow GetLocalProcessWindowAtPoint(
33 const gfx::Point& screen_point, 33 const gfx::Point& screen_point,
34 const std::set<gfx::NativeView>& ignore) = 0; 34 const std::set<gfx::NativeView>& ignore) = 0;
35
36 protected:
37 ~Factory() {}
38 }; 35 };
39 36
40 // Possible dock positions. 37 // Possible dock positions.
41 enum Type { 38 enum Type {
42 // Indicates there is no valid dock position for the current location. 39 // Indicates there is no valid dock position for the current location.
43 NONE, 40 NONE,
44 41
45 // Indicates the new window should be positioned relative to the window 42 // Indicates the new window should be positioned relative to the window
46 // identified by window(). 43 // identified by window().
47 LEFT_OF_WINDOW, 44 LEFT_OF_WINDOW,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 gfx::Point hot_spot_; 177 gfx::Point hot_spot_;
181 gfx::Rect monitor_bounds_; 178 gfx::Rect monitor_bounds_;
182 bool in_enable_area_; 179 bool in_enable_area_;
183 180
184 // Factory that creates DockInfos. By default this is NULL, which gives the 181 // Factory that creates DockInfos. By default this is NULL, which gives the
185 // default behavior. 182 // default behavior.
186 static Factory* factory_; 183 static Factory* factory_;
187 }; 184 };
188 185
189 #endif // CHROME_BROWSER_DOCK_INFO_H_ 186 #endif // CHROME_BROWSER_DOCK_INFO_H_
OLDNEW
« no previous file with comments | « chrome/browser/command_updater.h ('k') | chrome/browser/download/download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698