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

Side by Side Diff: Source/web/WebViewImpl.h

Issue 189573002: Convert HTMLFrameOwnerElement and FocusController to use Frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added alias for LocalFrame downcast 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
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "public/platform/WebPoint.h" 56 #include "public/platform/WebPoint.h"
57 #include "public/platform/WebRect.h" 57 #include "public/platform/WebRect.h"
58 #include "public/platform/WebSize.h" 58 #include "public/platform/WebSize.h"
59 #include "public/platform/WebString.h" 59 #include "public/platform/WebString.h"
60 #include "wtf/OwnPtr.h" 60 #include "wtf/OwnPtr.h"
61 #include "wtf/RefCounted.h" 61 #include "wtf/RefCounted.h"
62 #include "wtf/Vector.h" 62 #include "wtf/Vector.h"
63 63
64 namespace WebCore { 64 namespace WebCore {
65 class DataObject; 65 class DataObject;
66 class Color; 66 class Frame;
67 class LocalFrame;
68 class GraphicsLayerFactory; 67 class GraphicsLayerFactory;
69 class HistoryItem; 68 class HistoryItem;
70 class HitTestResult; 69 class HitTestResult;
71 class KeyboardEvent; 70 class KeyboardEvent;
72 class Page; 71 class Page;
73 class PagePopup; 72 class PagePopup;
74 class PagePopupClient; 73 class PagePopupClient;
75 class PlatformKeyboardEvent; 74 class PlatformKeyboardEvent;
76 class PopupMenuClient; 75 class PopupMenuClient;
77 class RenderLayerCompositor; 76 class RenderLayerCompositor;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 308
310 PageOverlayList* pageOverlays() const { return m_pageOverlays.get(); } 309 PageOverlayList* pageOverlays() const { return m_pageOverlays.get(); }
311 310
312 void setOverlayLayer(WebCore::GraphicsLayer*); 311 void setOverlayLayer(WebCore::GraphicsLayer*);
313 312
314 const WebPoint& lastMouseDownPoint() const 313 const WebPoint& lastMouseDownPoint() const
315 { 314 {
316 return m_lastMouseDownPoint; 315 return m_lastMouseDownPoint;
317 } 316 }
318 317
319 WebCore::LocalFrame* focusedWebCoreFrame() const; 318 WebCore::Frame* focusedWebCoreFrame() const;
320 319
321 // Returns the currently focused Element or null if no element has focus. 320 // Returns the currently focused Element or null if no element has focus.
322 WebCore::Element* focusedElement() const; 321 WebCore::Element* focusedElement() const;
323 322
324 static WebViewImpl* fromPage(WebCore::Page*); 323 static WebViewImpl* fromPage(WebCore::Page*);
325 324
326 WebViewClient* client() 325 WebViewClient* client()
327 { 326 {
328 return m_client; 327 return m_client;
329 } 328 }
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 float m_zoomFactorOverride; 769 float m_zoomFactorOverride;
771 }; 770 };
772 771
773 // We have no ways to check if the specified WebView is an instance of 772 // We have no ways to check if the specified WebView is an instance of
774 // WebViewImpl because WebViewImpl is the only implementation of WebView. 773 // WebViewImpl because WebViewImpl is the only implementation of WebView.
775 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 774 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
776 775
777 } // namespace blink 776 } // namespace blink
778 777
779 #endif 778 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698