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

Side by Side Diff: Source/core/page/WindowFeatures.h

Issue 177633011: fixed issue 342591: Uninit Error reported from write at IPC::Channel::ChannelImpl::ProcessOutgoingM… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update commit message, PTAL Created 6 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2007, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2007, 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 20 matching lines...) Expand all
31 31
32 #include "wtf/HashMap.h" 32 #include "wtf/HashMap.h"
33 #include "wtf/text/WTFString.h" 33 #include "wtf/text/WTFString.h"
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 class FloatRect; 37 class FloatRect;
38 38
39 struct WindowFeatures { 39 struct WindowFeatures {
40 WindowFeatures() 40 WindowFeatures()
41 : xSet(false) 41 : x(0.0f)
42 , xSet(false)
43 , y(0.0f)
42 , ySet(false) 44 , ySet(false)
45 , width(0.0f)
43 , widthSet(false) 46 , widthSet(false)
47 , height(0.0f)
44 , heightSet(false) 48 , heightSet(false)
45 , menuBarVisible(true) 49 , menuBarVisible(true)
46 , statusBarVisible(true) 50 , statusBarVisible(true)
47 , toolBarVisible(true) 51 , toolBarVisible(true)
48 , locationBarVisible(true) 52 , locationBarVisible(true)
49 , scrollbarsVisible(true) 53 , scrollbarsVisible(true)
50 , resizable(true) 54 , resizable(true)
51 , fullscreen(false) 55 , fullscreen(false)
52 , dialog(false) 56 , dialog(false)
53 { 57 {
(...skipping 26 matching lines...) Expand all
80 typedef HashMap<String, String> DialogFeaturesMap; 84 typedef HashMap<String, String> DialogFeaturesMap;
81 static void parseDialogFeatures(const String&, HashMap<String, String>&); 85 static void parseDialogFeatures(const String&, HashMap<String, String>&);
82 static bool boolFeature(const DialogFeaturesMap&, const char* key, bool defa ultValue = false); 86 static bool boolFeature(const DialogFeaturesMap&, const char* key, bool defa ultValue = false);
83 static float floatFeature(const DialogFeaturesMap&, const char* key, float m in, float max, float defaultValue); 87 static float floatFeature(const DialogFeaturesMap&, const char* key, float m in, float max, float defaultValue);
84 void setWindowFeature(const String& keyString, const String& valueString); 88 void setWindowFeature(const String& keyString, const String& valueString);
85 }; 89 };
86 90
87 } // namespace WebCore 91 } // namespace WebCore
88 92
89 #endif // WindowFeatures_h 93 #endif // WindowFeatures_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698