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_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 #if defined(OS_WIN) | 61 #if defined(OS_WIN) |
62 class JumpList; | 62 class JumpList; |
63 #endif | 63 #endif |
64 | 64 |
65 namespace autofill { | 65 namespace autofill { |
66 class PasswordGenerator; | 66 class PasswordGenerator; |
67 } | 67 } |
68 | 68 |
69 namespace content { | 69 namespace content { |
70 class RenderWidgetHost; | 70 class RenderFrameHost; |
71 } | 71 } |
72 | 72 |
73 namespace extensions { | 73 namespace extensions { |
74 class Extension; | 74 class Extension; |
75 } | 75 } |
76 | 76 |
77 namespace views { | 77 namespace views { |
78 class AccessiblePaneView; | 78 class AccessiblePaneView; |
79 class ExternalFocusTracker; | 79 class ExternalFocusTracker; |
80 class WebView; | 80 class WebView; |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 | 563 |
564 // Initialize the hung plugin detector. | 564 // Initialize the hung plugin detector. |
565 void InitHangMonitor(); | 565 void InitHangMonitor(); |
566 | 566 |
567 // Possibly records a user metrics action corresponding to the passed-in | 567 // Possibly records a user metrics action corresponding to the passed-in |
568 // accelerator. Only implemented for Chrome OS, where we're interested in | 568 // accelerator. Only implemented for Chrome OS, where we're interested in |
569 // learning about how frequently the top-row keys are used. | 569 // learning about how frequently the top-row keys are used. |
570 void UpdateAcceleratorMetrics(const ui::Accelerator& accelerator, | 570 void UpdateAcceleratorMetrics(const ui::Accelerator& accelerator, |
571 int command_id); | 571 int command_id); |
572 | 572 |
573 // Calls |method| which is either RenderWidgetHost::Cut, ::Copy, or ::Paste, | 573 // Calls |method| which is either RenderFrameHost::Cut, ::Copy, or ::Paste, |
574 // first trying the content WebContents, then the devtools WebContents, and | 574 // first trying the content WebContents, then the devtools WebContents, and |
575 // lastly the Views::Textfield if one is focused. | 575 // lastly the Views::Textfield if one is focused. |
576 void DoCutCopyPaste(void (content::RenderWidgetHost::*method)(), | 576 void DoCutCopyPaste(void (content::RenderFrameHost::*method)(), |
577 int command_id); | 577 int command_id); |
578 | 578 |
579 // Calls |method| which is either RenderWidgetHost::Cut, ::Copy, or ::Paste on | 579 // Calls |method| which is either RenderFrameHost::Cut, ::Copy, or ::Paste on |
580 // the given WebContents, returning true if it consumed the event. | 580 // the given WebContents, returning true if it consumed the event. |
581 bool DoCutCopyPasteForWebContents( | 581 bool DoCutCopyPasteForWebContents( |
582 content::WebContents* contents, | 582 content::WebContents* contents, |
583 void (content::RenderWidgetHost::*method)()); | 583 void (content::RenderFrameHost::*method)()); |
584 | 584 |
585 // Shows the next app-modal dialog box, if there is one to be shown, or moves | 585 // Shows the next app-modal dialog box, if there is one to be shown, or moves |
586 // an existing showing one to the front. | 586 // an existing showing one to the front. |
587 void ActivateAppModalDialog() const; | 587 void ActivateAppModalDialog() const; |
588 | 588 |
589 // Returns the max top arrow height for infobar. | 589 // Returns the max top arrow height for infobar. |
590 int GetMaxTopInfoBarArrowHeight(); | 590 int GetMaxTopInfoBarArrowHeight(); |
591 | 591 |
592 // Last focused view that issued a tab traversal. | 592 // Last focused view that issued a tab traversal. |
593 int last_focused_view_storage_id_; | 593 int last_focused_view_storage_id_; |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; | 736 scoped_ptr<ScrollEndEffectController> scroll_end_effect_controller_; |
737 | 737 |
738 gfx::ScopedSysColorChangeListener color_change_listener_; | 738 gfx::ScopedSysColorChangeListener color_change_listener_; |
739 | 739 |
740 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 740 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
741 | 741 |
742 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 742 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
743 }; | 743 }; |
744 | 744 |
745 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 745 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |