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 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 | 550 |
551 // Initialize the hung plugin detector. | 551 // Initialize the hung plugin detector. |
552 void InitHangMonitor(); | 552 void InitHangMonitor(); |
553 | 553 |
554 // Possibly records a user metrics action corresponding to the passed-in | 554 // Possibly records a user metrics action corresponding to the passed-in |
555 // accelerator. Only implemented for Chrome OS, where we're interested in | 555 // accelerator. Only implemented for Chrome OS, where we're interested in |
556 // learning about how frequently the top-row keys are used. | 556 // learning about how frequently the top-row keys are used. |
557 void UpdateAcceleratorMetrics(const ui::Accelerator& accelerator, | 557 void UpdateAcceleratorMetrics(const ui::Accelerator& accelerator, |
558 int command_id); | 558 int command_id); |
559 | 559 |
560 // Exposes resize corner size to BrowserViewLayout. | |
561 gfx::Size GetResizeCornerSize() const; | |
562 | |
563 // Create an icon for this window in the launcher (currently only for Ash). | 560 // Create an icon for this window in the launcher (currently only for Ash). |
564 void CreateLauncherIcon(); | 561 void CreateLauncherIcon(); |
565 | 562 |
566 // Calls |method| which is either RenderWidgetHost::Cut, ::Copy, or ::Paste, | 563 // Calls |method| which is either RenderWidgetHost::Cut, ::Copy, or ::Paste, |
567 // first trying the content WebContents, then the devtools WebContents, and | 564 // first trying the content WebContents, then the devtools WebContents, and |
568 // lastly the Views::Textfield if one is focused. | 565 // lastly the Views::Textfield if one is focused. |
569 // |windows_msg_id| is temporary until Win Aura is the default on Windows, | 566 // |windows_msg_id| is temporary until Win Aura is the default on Windows, |
570 // since until then the omnibox doesn't use Views::Textfield. | 567 // since until then the omnibox doesn't use Views::Textfield. |
571 void DoCutCopyPaste(void (content::RenderWidgetHost::*method)(), | 568 void DoCutCopyPaste(void (content::RenderWidgetHost::*method)(), |
572 #if defined(OS_WIN) | 569 #if defined(OS_WIN) |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 gfx::ScopedSysColorChangeListener color_change_listener_; | 743 gfx::ScopedSysColorChangeListener color_change_listener_; |
747 | 744 |
748 scoped_ptr<InstantOverlayControllerViews> overlay_controller_; | 745 scoped_ptr<InstantOverlayControllerViews> overlay_controller_; |
749 | 746 |
750 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; | 747 mutable base::WeakPtrFactory<BrowserView> activate_modal_dialog_factory_; |
751 | 748 |
752 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 749 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
753 }; | 750 }; |
754 | 751 |
755 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 752 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |