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

Unified Diff: chrome/browser/ui/browser_window_state.h

Issue 2844843002: Override MAXIMIZED window show state if window size / position is manually specified. (Closed)
Patch Set: Added missing unittest file. Created 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/browser_window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_window_state.h
diff --git a/chrome/browser/ui/browser_window_state.h b/chrome/browser/ui/browser_window_state.h
index cb224db296789bd9ed22ae010d878663ce384a7d..49b4534b9c3278798abd5537682d1cc164cf8e29 100644
--- a/chrome/browser/ui/browser_window_state.h
+++ b/chrome/browser/ui/browser_window_state.h
@@ -14,6 +14,7 @@
class Browser;
namespace base {
+class CommandLine;
class DictionaryValue;
}
@@ -58,6 +59,17 @@ void GetSavedWindowBoundsAndShowState(const Browser* browser,
gfx::Rect* bounds,
ui::WindowShowState* show_state);
+namespace internal {
+
+// Updates window bounds and show state from the provided command-line. Part of
+// implementation of GetSavedWindowBoundsAndShowState, but exposed for testing.
+void UpdateWindowBoundsAndShowStateFromCommandLine(
+ const base::CommandLine& command_line,
+ gfx::Rect* bounds,
+ ui::WindowShowState* show_state);
+
+} // namespace internal
+
} // namespace chrome
#endif // CHROME_BROWSER_UI_BROWSER_WINDOW_STATE_H_
« no previous file with comments | « no previous file | chrome/browser/ui/browser_window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698