| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // Whether the image is shrunk to fit or not | 80 // Whether the image is shrunk to fit or not |
| 81 bool m_didShrinkImage; | 81 bool m_didShrinkImage; |
| 82 | 82 |
| 83 // Whether the image should be shrunk or not | 83 // Whether the image should be shrunk or not |
| 84 bool m_shouldShrinkImage; | 84 bool m_shouldShrinkImage; |
| 85 | 85 |
| 86 // Whether the image has finished loading or not | 86 // Whether the image has finished loading or not |
| 87 bool m_imageIsLoaded; | 87 bool m_imageIsLoaded; |
| 88 | 88 |
| 89 // Size of the checkerboard background tiles | 89 // Size of the checkerboard background tiles |
| 90 int m_checkerSize; | 90 int m_styleCheckerSize; |
| 91 |
| 92 // Desktop: State of the mouse cursor in the image style |
| 93 enum MouseCursorMode { Default, ZoomIn, ZoomOut }; |
| 94 MouseCursorMode m_styleMouseCursorMode; |
| 91 | 95 |
| 92 enum ShrinkToFitMode { Viewport, Desktop }; | 96 enum ShrinkToFitMode { Viewport, Desktop }; |
| 93 ShrinkToFitMode m_shrinkToFitMode; | 97 ShrinkToFitMode m_shrinkToFitMode; |
| 94 }; | 98 }; |
| 95 | 99 |
| 96 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument); | 100 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument); |
| 97 | 101 |
| 98 } // namespace blink | 102 } // namespace blink |
| 99 | 103 |
| 100 #endif // ImageDocument_h | 104 #endif // ImageDocument_h |
| OLD | NEW |