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

Unified Diff: chrome/browser/ui/window_sizer/window_sizer_common_unittest.h

Issue 1900443002: Removes aura dependencies from WindowPositioner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke GetWorkAreaForWindowInParent and fix windows Created 4 years, 8 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/ui/window_sizer/window_sizer_common_unittest.h
diff --git a/chrome/browser/ui/window_sizer/window_sizer_common_unittest.h b/chrome/browser/ui/window_sizer/window_sizer_common_unittest.h
index 7c73ac0055101f142a0a720f5090ff39e561fddb..5e10dd2b21b32fec0d8676f39ac1e5baa9c04e2b 100644
--- a/chrome/browser/ui/window_sizer/window_sizer_common_unittest.h
+++ b/chrome/browser/ui/window_sizer/window_sizer_common_unittest.h
@@ -94,6 +94,8 @@ enum Source { DEFAULT, LAST_ACTIVE, PERSISTED, BOTH };
// last active window, the persisted value which was stored earlier, both or
// none. For all these states the |bounds| and |work_area| get used, for the
// show states either |show_state_persisted| or |show_state_last| will be used.
+// |display_index| is the index of the display to return from
+// GetDisplayNearestWindow(), and is only used on aura.
void GetWindowBoundsAndShowState(const gfx::Rect& monitor1_bounds,
const gfx::Rect& monitor1_work_area,
const gfx::Rect& monitor2_bounds,
@@ -104,6 +106,7 @@ void GetWindowBoundsAndShowState(const gfx::Rect& monitor1_bounds,
Source source,
const Browser* browser,
const gfx::Rect& passed_in,
+ size_t display_index,
gfx::Rect* out_bounds,
ui::WindowShowState* out_show_state);

Powered by Google App Engine
This is Rietveld 408576698