OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 void ProcessFullscreen(bool fullscreen); | 516 void ProcessFullscreen(bool fullscreen); |
517 | 517 |
518 // Copy the accelerator table from the app resources into something we can | 518 // Copy the accelerator table from the app resources into something we can |
519 // use. | 519 // use. |
520 void LoadAccelerators(); | 520 void LoadAccelerators(); |
521 | 521 |
522 #if defined(OS_WIN) | 522 #if defined(OS_WIN) |
523 // Builds the correct menu for when we have minimal chrome. | 523 // Builds the correct menu for when we have minimal chrome. |
524 void BuildSystemMenuForBrowserWindow(); | 524 void BuildSystemMenuForBrowserWindow(); |
525 void BuildSystemMenuForAppOrPopupWindow(); | 525 void BuildSystemMenuForAppOrPopupWindow(); |
526 | |
527 // Adds optional debug items for frame type toggling. | |
528 void AddFrameToggleItems(); | |
529 #endif | 526 #endif |
530 | 527 |
531 // Retrieves the command id for the specified Windows app command. | 528 // Retrieves the command id for the specified Windows app command. |
532 int GetCommandIDForAppCommandID(int app_command_id) const; | 529 int GetCommandIDForAppCommandID(int app_command_id) const; |
533 | 530 |
534 // Initialize the hung plugin detector. | 531 // Initialize the hung plugin detector. |
535 void InitHangMonitor(); | 532 void InitHangMonitor(); |
536 | 533 |
537 // Possibly records a user metrics action corresponding to the passed-in | 534 // Possibly records a user metrics action corresponding to the passed-in |
538 // accelerator. Only implemented for Chrome OS, where we're interested in | 535 // accelerator. Only implemented for Chrome OS, where we're interested in |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 | 715 |
719 NotificationRegistrar registrar_; | 716 NotificationRegistrar registrar_; |
720 | 717 |
721 // Used to measure the loading spinner animation rate. | 718 // Used to measure the loading spinner animation rate. |
722 base::TimeTicks last_animation_time_; | 719 base::TimeTicks last_animation_time_; |
723 | 720 |
724 DISALLOW_COPY_AND_ASSIGN(BrowserView); | 721 DISALLOW_COPY_AND_ASSIGN(BrowserView); |
725 }; | 722 }; |
726 | 723 |
727 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ | 724 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_VIEW_H_ |
OLD | NEW |