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

Side by Side Diff: sky/engine/web/WebViewImpl.h

Issue 783393006: Remove relayout due to scrollbars taking up width (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 // Returns true if the event leads to scrolling. 219 // Returns true if the event leads to scrolling.
220 static bool mapKeyCodeForScroll( 220 static bool mapKeyCodeForScroll(
221 int keyCode, 221 int keyCode,
222 ScrollDirection*, 222 ScrollDirection*,
223 ScrollGranularity*); 223 ScrollGranularity*);
224 224
225 // Exposed for the purpose of overriding device metrics. 225 // Exposed for the purpose of overriding device metrics.
226 void sendResizeEventAndRepaint(); 226 void sendResizeEventAndRepaint();
227 227
228 // Exposed for testing purposes.
229 bool hasHorizontalScrollbar();
230 bool hasVerticalScrollbar();
231
232 WebSettingsImpl* settingsImpl(); 228 WebSettingsImpl* settingsImpl();
233 229
234 IntPoint clampOffsetAtScale(const IntPoint& offset, float scale); 230 IntPoint clampOffsetAtScale(const IntPoint& offset, float scale);
235 231
236 // Exposed for tests. 232 // Exposed for tests.
237 WebVector<WebCompositionUnderline> compositionUnderlines() const; 233 WebVector<WebCompositionUnderline> compositionUnderlines() const;
238 234
239 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match esHeuristicsForGpuRasterization; } 235 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match esHeuristicsForGpuRasterization; }
240 236
241 private: 237 private:
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 bool m_userGestureObserved; 350 bool m_userGestureObserved;
355 }; 351 };
356 352
357 // We have no ways to check if the specified WebView is an instance of 353 // We have no ways to check if the specified WebView is an instance of
358 // WebViewImpl because WebViewImpl is the only implementation of WebView. 354 // WebViewImpl because WebViewImpl is the only implementation of WebView.
359 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 355 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
360 356
361 } // namespace blink 357 } // namespace blink
362 358
363 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ 359 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698