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

Unified Diff: chrome/browser/devtools/devtools_window.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, 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/devtools/devtools_window.h
diff --git a/chrome/browser/devtools/devtools_window.h b/chrome/browser/devtools/devtools_window.h
index 181ed3e318a48b8730aa8ba58a6bee98700e659b..37a89bcc16cfd61e14abef497d2911f25f8d4371 100644
--- a/chrome/browser/devtools/devtools_window.h
+++ b/chrome/browser/devtools/devtools_window.h
@@ -21,7 +21,6 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents_delegate.h"
-#include "ui/gfx/insets.h"
#include "ui/gfx/size.h"
class Browser;
@@ -123,9 +122,9 @@ class DevToolsWindow : private content::NotificationObserver,
content::RenderViewHost* GetRenderViewHost();
// Inspected WebContents is placed over DevTools WebContents in docked mode.
- // The following methods return the insets of inspected WebContents
- // relative to DevTools WebContents.
- gfx::Insets GetContentsInsets() const;
+ // The The following method returns the resizing strategy of inspected
+ // WebContents relative to DevTools WebContents.
+ const DevToolsContentsResizingStrategy& GetContentsResizingStrategy() const;
// Minimum size of the docked DevTools WebContents. This includes
// the overlaying inspected WebContents size.
@@ -301,6 +300,8 @@ class DevToolsWindow : private content::NotificationObserver,
virtual void CloseWindow() OVERRIDE;
virtual void SetContentsInsets(
int left, int top, int right, int bottom) OVERRIDE;
+ virtual void SetContentsResizingStrategy(
+ const DevToolsContentsResizingStrategy& strategy) OVERRIDE;
virtual void MoveWindow(int x, int y) OVERRIDE;
virtual void SetIsDocked(bool is_docked) OVERRIDE;
virtual void OpenInNewTab(const std::string& url) OVERRIDE;
@@ -381,7 +382,7 @@ class DevToolsWindow : private content::NotificationObserver,
scoped_refptr<DevToolsFileSystemIndexer::FileSystemIndexingJob> >
IndexingJobsMap;
IndexingJobsMap indexing_jobs_;
- gfx::Insets contents_insets_;
+ DevToolsContentsResizingStrategy contents_resizing_strategy_;
// True if we're in the process of handling a beforeunload event originating
// from the inspected webcontents, see InterceptPageBeforeUnload for details.
bool intercepted_page_beforeunload_;

Powered by Google App Engine
This is Rietveld 408576698