| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |