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

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

Issue 143803020: Minor Refator: Change signature of focusedElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Commit message updated Created 6 years, 10 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
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 void setOverlayLayer(WebCore::GraphicsLayer*); 317 void setOverlayLayer(WebCore::GraphicsLayer*);
318 318
319 const WebPoint& lastMouseDownPoint() const 319 const WebPoint& lastMouseDownPoint() const
320 { 320 {
321 return m_lastMouseDownPoint; 321 return m_lastMouseDownPoint;
322 } 322 }
323 323
324 WebCore::Frame* focusedWebCoreFrame() const; 324 WebCore::Frame* focusedWebCoreFrame() const;
325 325
326 // Returns the currently focused Element or null if no element has focus. 326 // Returns the currently focused Element or null if no element has focus.
327 WebCore::Element* focusedElement(); 327 WebCore::Element* focusedElement() const;
Inactive 2014/02/13 16:10:07 I think several getters were non-const because of
328 328
329 static WebViewImpl* fromPage(WebCore::Page*); 329 static WebViewImpl* fromPage(WebCore::Page*);
330 330
331 WebViewClient* client() 331 WebViewClient* client()
332 { 332 {
333 return m_client; 333 return m_client;
334 } 334 }
335 335
336 WebAutofillClient* autofillClient() 336 WebAutofillClient* autofillClient()
337 { 337 {
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 Vector<RefPtr<WebHelperPluginImpl> > m_helperPluginsPendingClose; 780 Vector<RefPtr<WebHelperPluginImpl> > m_helperPluginsPendingClose;
781 }; 781 };
782 782
783 // We have no ways to check if the specified WebView is an instance of 783 // We have no ways to check if the specified WebView is an instance of
784 // WebViewImpl because WebViewImpl is the only implementation of WebView. 784 // WebViewImpl because WebViewImpl is the only implementation of WebView.
785 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 785 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
786 786
787 } // namespace blink 787 } // namespace blink
788 788
789 #endif 789 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698