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 25 matching lines...) Expand all Loading... |
36 // RenderViewObserver implementation. | 36 // RenderViewObserver implementation. |
37 bool OnMessageReceived(const IPC::Message& message) override; | 37 bool OnMessageReceived(const IPC::Message& message) override; |
38 void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, | 38 void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, |
39 bool is_new_navigation) override; | 39 bool is_new_navigation) override; |
40 void Navigate(const GURL& url) override; | 40 void Navigate(const GURL& url) override; |
41 void OnDestruct() override; | 41 void OnDestruct() override; |
42 | 42 |
43 #if !defined(OS_ANDROID) | 43 #if !defined(OS_ANDROID) |
44 void OnWebUIJavaScript(const base::string16& javascript); | 44 void OnWebUIJavaScript(const base::string16& javascript); |
45 #endif | 45 #endif |
46 #if BUILDFLAG(ENABLE_EXTENSIONS) | |
47 void OnSetVisuallyDeemphasized(bool deemphasized); | |
48 #endif | |
49 #if defined(OS_ANDROID) | 46 #if defined(OS_ANDROID) |
50 void OnUpdateBrowserControlsState(content::BrowserControlsState constraints, | 47 void OnUpdateBrowserControlsState(content::BrowserControlsState constraints, |
51 content::BrowserControlsState current, | 48 content::BrowserControlsState current, |
52 bool animate); | 49 bool animate); |
53 #endif | 50 #endif |
54 void OnGetWebApplicationInfo(); | 51 void OnGetWebApplicationInfo(); |
55 void OnSetWindowFeatures(const blink::mojom::WindowFeatures& window_features); | 52 void OnSetWindowFeatures(const blink::mojom::WindowFeatures& window_features); |
56 | 53 |
57 // Determines if a host is in the strict security host set. | 54 // Determines if a host is in the strict security host set. |
58 bool IsStrictSecurityHost(const std::string& host); | 55 bool IsStrictSecurityHost(const std::string& host); |
59 | 56 |
60 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. | 57 // Save the JavaScript to preload if a ViewMsg_WebUIJavaScript is received. |
61 std::vector<base::string16> webui_javascript_; | 58 std::vector<base::string16> webui_javascript_; |
62 | 59 |
63 // Owned by ChromeContentRendererClient and outlive us. | 60 // Owned by ChromeContentRendererClient and outlive us. |
64 web_cache::WebCacheImpl* web_cache_impl_; | 61 web_cache::WebCacheImpl* web_cache_impl_; |
65 | 62 |
66 // true if webview is overlayed with grey color. | |
67 bool webview_visually_deemphasized_; | |
68 | |
69 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); | 63 DISALLOW_COPY_AND_ASSIGN(ChromeRenderViewObserver); |
70 }; | 64 }; |
71 | 65 |
72 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ | 66 #endif // CHROME_RENDERER_CHROME_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |