| 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 CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 5 #ifndef CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
| 6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 6 #define CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 content::RenderView* render_view, | 37 content::RenderView* render_view, |
| 38 web_cache::WebCacheImpl* web_cache_render_thread_observer); | 38 web_cache::WebCacheImpl* web_cache_render_thread_observer); |
| 39 ~ChromeRenderViewObserver() override; | 39 ~ChromeRenderViewObserver() override; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 // RenderViewObserver implementation. | 42 // RenderViewObserver implementation. |
| 43 bool OnMessageReceived(const IPC::Message& message) override; | 43 bool OnMessageReceived(const IPC::Message& message) override; |
| 44 void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, | 44 void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, |
| 45 bool is_new_navigation) override; | 45 bool is_new_navigation) override; |
| 46 void Navigate(const GURL& url) override; | 46 void Navigate(const GURL& url) override; |
| 47 void OnDestruct() override; |
| 47 | 48 |
| 48 #if !defined(OS_ANDROID) | 49 #if !defined(OS_ANDROID) |
| 49 void OnWebUIJavaScript(const base::string16& javascript); | 50 void OnWebUIJavaScript(const base::string16& javascript); |
| 50 #endif | 51 #endif |
| 51 #if defined(ENABLE_EXTENSIONS) | 52 #if defined(ENABLE_EXTENSIONS) |
| 52 void OnSetVisuallyDeemphasized(bool deemphasized); | 53 void OnSetVisuallyDeemphasized(bool deemphasized); |
| 53 #endif | 54 #endif |
| 54 #if defined(OS_ANDROID) | 55 #if defined(OS_ANDROID) |
| 55 void OnUpdateTopControlsState(content::TopControlsState constraints, | 56 void OnUpdateTopControlsState(content::TopControlsState constraints, |
| 56 content::TopControlsState current, | 57 content::TopControlsState current, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 68 // Owned by ChromeContentRendererClient and outlive us. | 69 // Owned by ChromeContentRendererClient and outlive us. |
| 69 web_cache::WebCacheImpl* web_cache_impl_; | 70 web_cache::WebCacheImpl* web_cache_impl_; |
| 70 | 71 |
| 71 // true if webview is overlayed with grey color. | 72 // true if webview is overlayed with grey color. |
| 72 bool webview_visually_deemphasized_; | 73 bool webview_visually_deemphasized_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 75 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 78 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |