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

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

Issue 137483007: [DevTools] Use special resizing strategy instead of insets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
pfeldman 2014/01/31 11:28:30 2014
dgozman 2014/01/31 13:33:13 Done.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_
7
8 #include "base/basictypes.h"
9 #include "ui/gfx/insets.h"
10 #include "ui/gfx/rect.h"
11 #include "ui/gfx/size.h"
12
13 struct DevToolsContentsResizingStrategy {
14 DevToolsContentsResizingStrategy();
pfeldman 2014/01/31 11:28:30 You don't seem to need these.
dgozman 2014/01/31 13:33:13 Done.
15 ~DevToolsContentsResizingStrategy();
16
17 void Apply(
18 const gfx::Size& container_size,
19 const gfx::Rect& old_devtools_bounds,
20 const gfx::Rect& old_contents_bounds,
21 gfx::Rect* new_devtools_bounds,
22 gfx::Rect* new_contents_bounds);
23
24 // Insets of contents inside DevTools.
25 gfx::Insets insets;
26
27 // Minimum size of contents.
28 gfx::Size min_size;
29 };
30
31 inline bool operator==(const DevToolsContentsResizingStrategy& lhs,
32 const DevToolsContentsResizingStrategy& rhs) {
33 return lhs.insets == rhs.insets;
34 }
35
36 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_CONTENTS_RESIZING_STRATEGY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698