Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / browser_window_state.h
blobec5e7ff1ea51f3f0a07e0687170d06b33a7eac6d
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_STATE_H_
6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_STATE_H_
8 #include <string>
10 #include "ui/base/ui_base_types.h"
12 class Browser;
14 namespace gfx {
15 class Rect;
18 namespace chrome {
20 std::string GetWindowPlacementKey(const Browser* browser);
22 bool ShouldSaveWindowPlacement(const Browser* browser);
24 void SaveWindowPlacement(const Browser* browser,
25 const gfx::Rect& bounds,
26 ui::WindowShowState show_state);
28 // Return the |bounds| for the browser window to be used upon creation.
29 // The |show_state| variable will receive the desired initial show state for
30 // the window.
31 void GetSavedWindowBoundsAndShowState(const Browser* browser,
32 gfx::Rect* bounds,
33 ui::WindowShowState* show_state);
35 } // namespace chrome
37 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_STATE_H_