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 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 // learning about how frequently the top-row keys are used. | 557 // learning about how frequently the top-row keys are used. |
558 void UpdateAcceleratorMetrics(const ui::Accelerator& accelerator, | 558 void UpdateAcceleratorMetrics(const ui::Accelerator& accelerator, |
559 int command_id); | 559 int command_id); |
560 | 560 |
561 // Exposes resize corner size to BrowserViewLayout. | 561 // Exposes resize corner size to BrowserViewLayout. |
562 gfx::Size GetResizeCornerSize() const; | 562 gfx::Size GetResizeCornerSize() const; |
563 | 563 |
564 // Create an icon for this window in the launcher (currently only for Ash). | 564 // Create an icon for this window in the launcher (currently only for Ash). |
565 void CreateLauncherIcon(); | 565 void CreateLauncherIcon(); |
566 | 566 |
567 // Calls |method| which is either RenderWidgetHost::Cut, ::Copy, or ::Paste | 567 // Calls |method| which is either RenderWidgetHost::Cut, ::Copy, or ::Paste, |
568 // and returns true if the focus is currently on a WebContent. | 568 // first trying the content WebContents, then the devtools WebContents, and |
569 bool DoCutCopyPaste(void (content::RenderWidgetHost::*method)()); | 569 // lastly the Views::Textfield if one is focused. |
| 570 // |windows_msg_id| is temporary until Win Aura is the default on Windows, |
| 571 // since until then the omnibox doesn't use Views::Textfield. |
| 572 void DoCutCopyPaste(void (content::RenderWidgetHost::*method)(), |
| 573 #if defined(OS_WIN) |
| 574 int windows_msg_id, |
| 575 #endif |
| 576 int command_id); |
| 577 |
| 578 // Calls |method| which is either RenderWidgetHost::Cut, ::Copy, or ::Paste on |
| 579 // the given WebContents, returning true if it consumed the event. |
| 580 bool DoCutCopyPasteForWebContents( |
| 581 content::WebContents* contents, |
| 582 void (content::RenderWidgetHost::*method)()); |
570 | 583 |
571 // Shows the next app-modal dialog box, if there is one to be shown, or moves | 584 // Shows the next app-modal dialog box, if there is one to be shown, or moves |
572 // an existing showing one to the front. | 585 // an existing showing one to the front. |
573 void ActivateAppModalDialog() const; | 586 void ActivateAppModalDialog() const; |
574 | 587 |
575 // If search mode is |MODE_NTP| and bookmark bar is visible, stack it at top. | 588 // If search mode is |MODE_NTP| and bookmark bar is visible, stack it at top. |
576 void MaybeStackBookmarkBarAtTop(); | 589 void MaybeStackBookmarkBarAtTop(); |
577 | 590 |
578 // Last focused view that issued a tab traversal. | 591 // Last focused view that issued a tab traversal. |
579 int last_focused_view_storage_id_; | 592 int last_focused_view_storage_id_; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 gfx::ScopedSysColorChangeListener color_change_listener_; | 744 gfx::ScopedSysColorChangeListener color_change_listener_; |
732 | 745 |
733 scoped_ptr<InstantPreviewControllerViews> preview_controller_; | 746 scoped_ptr<InstantPreviewControllerViews> preview_controller_; |
734 | 747 |
735 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 748 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
736 | 749 |
737 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 750 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
738 }; | 751 }; |
739 | 752 |
740 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 753 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |