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

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

Issue 955143002: Add setVisibilityState API to WebFrameWidget (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Another comment update Created 5 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
« no previous file with comments | « no previous file | Source/web/WebFrameWidgetImpl.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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // Returns the currently focused Element or null if no element has focus. 128 // Returns the currently focused Element or null if no element has focus.
129 Element* focusedElement() const; 129 Element* focusedElement() const;
130 130
131 void scheduleAnimation(); 131 void scheduleAnimation();
132 132
133 LayerCompositor* compositor() const; 133 LayerCompositor* compositor() const;
134 void suppressInvalidations(bool enable); 134 void suppressInvalidations(bool enable);
135 void setRootGraphicsLayer(GraphicsLayer*); 135 void setRootGraphicsLayer(GraphicsLayer*);
136 136
137 void setVisibilityState(WebPageVisibilityState, bool) override;
138
137 // Exposed for the purpose of overriding device metrics. 139 // Exposed for the purpose of overriding device metrics.
138 void sendResizeEventAndRepaint(); 140 void sendResizeEventAndRepaint();
139 141
140 void updateMainFrameLayoutSize(); 142 void updateMainFrameLayoutSize();
141 143
142 // Returns the page object associated with this widget. This may be null whe n 144 // Returns the page object associated with this widget. This may be null whe n
143 // the page is shutting down, but will be valid at all other times. 145 // the page is shutting down, but will be valid at all other times.
144 Page* page() const { return m_page; } 146 Page* page() const { return m_page; }
145 147
146 // Returns true if the event leads to scrolling. 148 // Returns true if the event leads to scrolling.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 bool m_suppressNextKeypressEvent; 208 bool m_suppressNextKeypressEvent;
207 209
208 bool m_ignoreInputEvents; 210 bool m_ignoreInputEvents;
209 211
210 static const WebInputEvent* m_currentInputEvent; 212 static const WebInputEvent* m_currentInputEvent;
211 }; 213 };
212 214
213 } // namespace blink 215 } // namespace blink
214 216
215 #endif 217 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698