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

Side by Side Diff: chrome/browser/devtools/devtools_contents_resizing_strategy.h

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/macros.h"
9 #include "ui/gfx/geometry/insets.h" 9 #include "ui/gfx/geometry/insets.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
11 #include "ui/gfx/geometry/size.h" 11 #include "ui/gfx/geometry/size.h"
12 12
13 // This class knows how to resize both DevTools and inspected WebContents 13 // This class knows how to resize both DevTools and inspected WebContents
14 // inside a browser window hierarchy. 14 // inside a browser window hierarchy.
15 class DevToolsContentsResizingStrategy { 15 class DevToolsContentsResizingStrategy {
16 public: 16 public:
17 DevToolsContentsResizingStrategy(); 17 DevToolsContentsResizingStrategy();
18 explicit DevToolsContentsResizingStrategy( 18 explicit DevToolsContentsResizingStrategy(
(...skipping 20 matching lines...) Expand all
39 // inside a common parent view, which size should be passed in |container_size|. 39 // inside a common parent view, which size should be passed in |container_size|.
40 // When unknown, providing empty rect as previous devtools and contents bounds 40 // When unknown, providing empty rect as previous devtools and contents bounds
41 // is allowed. 41 // is allowed.
42 void ApplyDevToolsContentsResizingStrategy( 42 void ApplyDevToolsContentsResizingStrategy(
43 const DevToolsContentsResizingStrategy& strategy, 43 const DevToolsContentsResizingStrategy& strategy,
44 const gfx::Size& container_size, 44 const gfx::Size& container_size,
45 gfx::Rect* new_devtools_bounds, 45 gfx::Rect* new_devtools_bounds,
46 gfx::Rect* new_contents_bounds); 46 gfx::Rect* new_contents_bounds);
47 47
48 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_ 48 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/device/webrtc/webrtc_device_provider.cc ('k') | chrome/browser/devtools/devtools_file_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698