OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
417 allow_privileged_mouse_lock_ = allow; | 417 allow_privileged_mouse_lock_ = allow; |
418 } | 418 } |
419 | 419 |
420 // Resets state variables related to tracking pending size and painting. | 420 // Resets state variables related to tracking pending size and painting. |
421 // | 421 // |
422 // We need to reset these flags when we want to repaint the contents of | 422 // We need to reset these flags when we want to repaint the contents of |
423 // browser plugin in this RWH. Resetting these flags will ensure we ignore | 423 // browser plugin in this RWH. Resetting these flags will ensure we ignore |
424 // any previous pending acks that are not relevant upon repaint. | 424 // any previous pending acks that are not relevant upon repaint. |
425 void ResetSizeAndRepaintPendingFlags(); | 425 void ResetSizeAndRepaintPendingFlags(); |
426 | 426 |
427 RenderWidgetHostDelegate* GetDelegate(); | |
nasko
2015/05/13 17:24:08
Simple accessors, such as this one, use hacker_cas
lgarron
2015/05/13 21:58:40
get_delegate() or just delegate()?
Charlie Reis
2015/05/14 20:36:28
delegate().
They should also be inlined in the .h
nasko
2015/05/14 20:45:23
Just delegate().
| |
428 | |
427 void DetachDelegate(); | 429 void DetachDelegate(); |
428 | 430 |
429 // Update the renderer's cache of the screen rect of the view and window. | 431 // Update the renderer's cache of the screen rect of the view and window. |
430 void SendScreenRects(); | 432 void SendScreenRects(); |
431 | 433 |
432 // Suppreses future char events until a keydown. See | 434 // Suppreses future char events until a keydown. See |
433 // suppress_next_char_events_. | 435 // suppress_next_char_events_. |
434 void SuppressNextCharEvents(); | 436 void SuppressNextCharEvents(); |
435 | 437 |
436 // Called by the view in response to a flush request. | 438 // Called by the view in response to a flush request. |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
836 bool is_focused_; | 838 bool is_focused_; |
837 | 839 |
838 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 840 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
839 | 841 |
840 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 842 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
841 }; | 843 }; |
842 | 844 |
843 } // namespace content | 845 } // namespace content |
844 | 846 |
845 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 847 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |