| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 #include "WebFrame.h" | 36 #include "WebFrame.h" |
| 37 #include "WebScriptSource.h" | 37 #include "WebScriptSource.h" |
| 38 #include "WebSettings.h" | 38 #include "WebSettings.h" |
| 39 #include "WebViewClient.h" | 39 #include "WebViewClient.h" |
| 40 #include "core/dom/ViewportDescription.h" | 40 #include "core/dom/ViewportDescription.h" |
| 41 #include "core/frame/Frame.h" | 41 #include "core/frame/Frame.h" |
| 42 #include "core/frame/FrameView.h" | 42 #include "core/frame/FrameView.h" |
| 43 #include "core/page/Page.h" | 43 #include "core/page/Page.h" |
| 44 #include "core/page/PageScaleConstraints.h" | 44 #include "core/page/PageScaleConstraints.h" |
| 45 #include "core/page/Settings.h" | 45 #include "core/page/Settings.h" |
| 46 #include "core/platform/ScrollbarTheme.h" | |
| 47 #include "platform/geometry/IntPoint.h" | 46 #include "platform/geometry/IntPoint.h" |
| 48 #include "platform/geometry/IntRect.h" | 47 #include "platform/geometry/IntRect.h" |
| 49 #include "platform/geometry/IntSize.h" | 48 #include "platform/geometry/IntSize.h" |
| 49 #include "platform/scroll/ScrollbarTheme.h" |
| 50 #include "public/platform/Platform.h" | 50 #include "public/platform/Platform.h" |
| 51 #include "public/platform/WebUnitTestSupport.h" | 51 #include "public/platform/WebUnitTestSupport.h" |
| 52 #include <gmock/gmock.h> | 52 #include <gmock/gmock.h> |
| 53 #include <gtest/gtest.h> | 53 #include <gtest/gtest.h> |
| 54 | 54 |
| 55 #include <vector> | 55 #include <vector> |
| 56 | 56 |
| 57 using namespace blink; | 57 using namespace blink; |
| 58 using WebCore::Frame; | 58 using WebCore::Frame; |
| 59 using WebCore::FrameView; | 59 using WebCore::FrameView; |
| (...skipping 3044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3104 | 3104 |
| 3105 EXPECT_NEAR(64.0f, constraints.layoutSize.width(), 0.01); | 3105 EXPECT_NEAR(64.0f, constraints.layoutSize.width(), 0.01); |
| 3106 EXPECT_NEAR(70.4f, constraints.layoutSize.height(), 0.01); | 3106 EXPECT_NEAR(70.4f, constraints.layoutSize.height(), 0.01); |
| 3107 EXPECT_NEAR(5.0f, constraints.initialScale, 0.01f); | 3107 EXPECT_NEAR(5.0f, constraints.initialScale, 0.01f); |
| 3108 EXPECT_NEAR(5.0f, constraints.minimumScale, 0.01f); | 3108 EXPECT_NEAR(5.0f, constraints.minimumScale, 0.01f); |
| 3109 EXPECT_NEAR(5.0f, constraints.maximumScale, 0.01f); | 3109 EXPECT_NEAR(5.0f, constraints.maximumScale, 0.01f); |
| 3110 EXPECT_TRUE(page->viewportDescription().userZoom); | 3110 EXPECT_TRUE(page->viewportDescription().userZoom); |
| 3111 } | 3111 } |
| 3112 | 3112 |
| 3113 } // namespace | 3113 } // namespace |
| OLD | NEW |