Modify Window API to be more consistent.
* '_' becomes '-' * removes 'position' field * adds 'center' method.
This commit is contained in:
parent
e6a9add691
commit
34e9132b68
8 changed files with 30 additions and 24 deletions
|
@ -9,21 +9,19 @@ namespace atom {
|
|||
namespace switches {
|
||||
|
||||
const char kTitle[] = "title";
|
||||
const char kToolbar[] = "toolbar";
|
||||
const char kIcon[] = "icon";
|
||||
const char kFrame[] = "frame";
|
||||
const char kShow[] = "show";
|
||||
const char kPosition[] = "position";
|
||||
const char kCenter[] = "center";
|
||||
const char kX[] = "x";
|
||||
const char kY[] = "y";
|
||||
const char kWidth[] = "width";
|
||||
const char kHeight[] = "height";
|
||||
const char kMinWidth[] = "min_width";
|
||||
const char kMinHeight[] = "min_height";
|
||||
const char kMaxWidth[] = "max_width";
|
||||
const char kMaxHeight[] = "max_height";
|
||||
const char kMinWidth[] = "min-width";
|
||||
const char kMinHeight[] = "min-height";
|
||||
const char kMaxWidth[] = "max-width";
|
||||
const char kMaxHeight[] = "max-height";
|
||||
const char kResizable[] = "resizable";
|
||||
const char kAsDesktop[] = "as_desktop";
|
||||
const char kFullscreen[] = "fullscreen";
|
||||
|
||||
// Start with the kiosk mode, see Opera's page for description:
|
||||
|
|
|
@ -10,11 +10,10 @@ namespace atom {
|
|||
namespace switches {
|
||||
|
||||
extern const char kTitle[];
|
||||
extern const char kToolbar[];
|
||||
extern const char kIcon[];
|
||||
extern const char kFrame[];
|
||||
extern const char kShow[];
|
||||
extern const char kPosition[];
|
||||
extern const char kCenter[];
|
||||
extern const char kX[];
|
||||
extern const char kY[];
|
||||
extern const char kWidth[];
|
||||
|
@ -24,7 +23,6 @@ extern const char kMinHeight[];
|
|||
extern const char kMaxWidth[];
|
||||
extern const char kMaxHeight[];
|
||||
extern const char kResizable[];
|
||||
extern const char kAsDesktop[];
|
||||
extern const char kFullscreen[];
|
||||
extern const char kKiosk[];
|
||||
extern const char kAlwaysOnTop[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue