| 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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 virtual void didAddMessageToConsole( | 409 virtual void didAddMessageToConsole( |
| 410 const blink::WebConsoleMessage& message, | 410 const blink::WebConsoleMessage& message, |
| 411 const blink::WebString& source_name, | 411 const blink::WebString& source_name, |
| 412 unsigned source_line, | 412 unsigned source_line, |
| 413 const blink::WebString& stack_trace); | 413 const blink::WebString& stack_trace); |
| 414 virtual void printPage(blink::WebFrame* frame); | 414 virtual void printPage(blink::WebFrame* frame); |
| 415 virtual blink::WebNotificationPresenter* notificationPresenter(); | 415 virtual blink::WebNotificationPresenter* notificationPresenter(); |
| 416 virtual bool enumerateChosenDirectory( | 416 virtual bool enumerateChosenDirectory( |
| 417 const blink::WebString& path, | 417 const blink::WebString& path, |
| 418 blink::WebFileChooserCompletion* chooser_completion); | 418 blink::WebFileChooserCompletion* chooser_completion); |
| 419 // DEPRECATED |
| 419 virtual void didStartLoading(bool to_different_document); | 420 virtual void didStartLoading(bool to_different_document); |
| 420 // DEPRECATED | 421 // DEPRECATED |
| 421 virtual void didStartLoading(); | |
| 422 virtual void didStopLoading(); | 422 virtual void didStopLoading(); |
| 423 virtual void didStartLoading(blink::WebFrame* frame); |
| 424 virtual void didStopLoading(blink::WebFrame* frame); |
| 423 virtual void didChangeLoadProgress(blink::WebFrame* frame, | 425 virtual void didChangeLoadProgress(blink::WebFrame* frame, |
| 424 double load_progress); | 426 double load_progress); |
| 425 virtual void didCancelCompositionOnSelectionChange(); | 427 virtual void didCancelCompositionOnSelectionChange(); |
| 426 virtual void didChangeSelection(bool is_selection_empty); | 428 virtual void didChangeSelection(bool is_selection_empty); |
| 427 virtual void didExecuteCommand(const blink::WebString& command_name); | 429 virtual void didExecuteCommand(const blink::WebString& command_name); |
| 428 virtual bool handleCurrentKeyboardEvent(); | 430 virtual bool handleCurrentKeyboardEvent(); |
| 429 virtual blink::WebColorChooser* createColorChooser( | 431 virtual blink::WebColorChooser* createColorChooser( |
| 430 blink::WebColorChooserClient*, | 432 blink::WebColorChooserClient*, |
| 431 const blink::WebColor& initial_color, | 433 const blink::WebColor& initial_color, |
| 432 const blink::WebVector<blink::WebColorSuggestion>& suggestions); | 434 const blink::WebVector<blink::WebColorSuggestion>& suggestions); |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 // If a render view is set to the minimum size of its content, webkit may add | 1150 // If a render view is set to the minimum size of its content, webkit may add |
| 1149 // scroll bars. This makes sense for fixed sized windows, but it does not | 1151 // scroll bars. This makes sense for fixed sized windows, but it does not |
| 1150 // make sense when the size of the view was chosen to fit the content. | 1152 // make sense when the size of the view was chosen to fit the content. |
| 1151 // This setting ensures that no scroll bars are drawn. The size limit exists | 1153 // This setting ensures that no scroll bars are drawn. The size limit exists |
| 1152 // because if the view grows beyond a size known to the browser, scroll bars | 1154 // because if the view grows beyond a size known to the browser, scroll bars |
| 1153 // should be drawn. | 1155 // should be drawn. |
| 1154 gfx::Size disable_scrollbars_size_limit_; | 1156 gfx::Size disable_scrollbars_size_limit_; |
| 1155 | 1157 |
| 1156 // Loading state ------------------------------------------------------------- | 1158 // Loading state ------------------------------------------------------------- |
| 1157 | 1159 |
| 1158 // True if the top level frame is currently being loaded. | |
| 1159 bool is_loading_; | |
| 1160 | |
| 1161 // The gesture that initiated the current navigation. | 1160 // The gesture that initiated the current navigation. |
| 1162 NavigationGesture navigation_gesture_; | 1161 NavigationGesture navigation_gesture_; |
| 1163 | 1162 |
| 1164 // Used for popups. | 1163 // Used for popups. |
| 1165 bool opened_by_user_gesture_; | 1164 bool opened_by_user_gesture_; |
| 1166 | 1165 |
| 1167 // Whether this RenderView was created by a frame that was suppressing its | 1166 // Whether this RenderView was created by a frame that was suppressing its |
| 1168 // opener. If so, we may want to load pages in a separate process. See | 1167 // opener. If so, we may want to load pages in a separate process. See |
| 1169 // decidePolicyForNavigation for details. | 1168 // decidePolicyForNavigation for details. |
| 1170 bool opener_suppressed_; | 1169 bool opener_suppressed_; |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1455 // use the Observer interface to filter IPC messages and receive frame change | 1454 // use the Observer interface to filter IPC messages and receive frame change |
| 1456 // notifications. | 1455 // notifications. |
| 1457 // --------------------------------------------------------------------------- | 1456 // --------------------------------------------------------------------------- |
| 1458 | 1457 |
| 1459 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1458 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1460 }; | 1459 }; |
| 1461 | 1460 |
| 1462 } // namespace content | 1461 } // namespace content |
| 1463 | 1462 |
| 1464 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1463 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |