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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 944763002: Make Page Visibility API work when the browser window is visible or not Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use of SetWindowVisibility message Created 5 years, 8 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 | « content/public/browser/render_widget_host_view.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 void OnStopFinding(StopFindAction action); 668 void OnStopFinding(StopFindAction action);
669 void OnSuppressDialogsUntilSwapOut(); 669 void OnSuppressDialogsUntilSwapOut();
670 void OnThemeChanged(); 670 void OnThemeChanged();
671 void OnUpdateTargetURLAck(); 671 void OnUpdateTargetURLAck();
672 void OnUpdateWebPreferences(const WebPreferences& prefs); 672 void OnUpdateWebPreferences(const WebPreferences& prefs);
673 void OnResetPageScale(); 673 void OnResetPageScale();
674 void OnZoom(PageZoom zoom); 674 void OnZoom(PageZoom zoom);
675 void OnEnableViewSourceMode(); 675 void OnEnableViewSourceMode();
676 void OnForceRedraw(int request_id); 676 void OnForceRedraw(int request_id);
677 void OnSelectWordAroundCaret(); 677 void OnSelectWordAroundCaret();
678 void OnSetWindowVisibility(bool visible);
678 #if defined(OS_ANDROID) 679 #if defined(OS_ANDROID)
679 void OnActivateNearestFindResult(int request_id, float x, float y); 680 void OnActivateNearestFindResult(int request_id, float x, float y);
680 void OnFindMatchRects(int current_version); 681 void OnFindMatchRects(int current_version);
681 void OnUndoScrollFocusedEditableNodeIntoRect(); 682 void OnUndoScrollFocusedEditableNodeIntoRect();
682 void OnUpdateTopControlsState(bool enable_hiding, 683 void OnUpdateTopControlsState(bool enable_hiding,
683 bool enable_showing, 684 bool enable_showing,
684 bool animate); 685 bool animate);
685 void OnExtractSmartClipData(const gfx::Rect& rect); 686 void OnExtractSmartClipData(const gfx::Rect& rect);
686 #elif defined(OS_MACOSX) 687 #elif defined(OS_MACOSX)
687 void OnGetRenderedText(); 688 void OnGetRenderedText();
688 void OnPluginImeCompositionCompleted(const base::string16& text, 689 void OnPluginImeCompositionCompleted(const base::string16& text,
689 int plugin_id); 690 int plugin_id);
690 void OnSetInLiveResize(bool in_live_resize); 691 void OnSetInLiveResize(bool in_live_resize);
691 void OnSetWindowVisibility(bool visible);
692 void OnWindowFrameChanged(const gfx::Rect& window_frame, 692 void OnWindowFrameChanged(const gfx::Rect& window_frame,
693 const gfx::Rect& view_frame); 693 const gfx::Rect& view_frame);
694 #endif 694 #endif
695 695
696 // Adding a new message handler? Please add it in alphabetical order above 696 // Adding a new message handler? Please add it in alphabetical order above
697 // and put it in the same position in the .cc file. 697 // and put it in the same position in the .cc file.
698 698
699 // Misc private functions ---------------------------------------------------- 699 // Misc private functions ----------------------------------------------------
700 // Check whether the preferred size has changed. 700 // Check whether the preferred size has changed.
701 void CheckPreferredSize(); 701 void CheckPreferredSize();
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 // use the Observer interface to filter IPC messages and receive frame change 1017 // use the Observer interface to filter IPC messages and receive frame change
1018 // notifications. 1018 // notifications.
1019 // --------------------------------------------------------------------------- 1019 // ---------------------------------------------------------------------------
1020 1020
1021 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1021 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1022 }; 1022 };
1023 1023
1024 } // namespace content 1024 } // namespace content
1025 1025
1026 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1026 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698