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

Side by Side Diff: chrome/browser/apps/app_browsertest.cc

Issue 2133013002: AcceleratorProvider: Make GetAcceleratorForCommandId const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix overrides on Mac and Chrome OS. Created 4 years, 5 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 | « ash/sysui/shelf_delegate_mus.cc ('k') | chrome/browser/download/download_shelf_context_menu.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "apps/launcher.h" 9 #include "apps/launcher.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 bool HasCommandWithId(int command_id) { 84 bool HasCommandWithId(int command_id) {
85 return menu_model_.GetIndexOfCommandId(command_id) != -1; 85 return menu_model_.GetIndexOfCommandId(command_id) != -1;
86 } 86 }
87 87
88 void Show() override {} 88 void Show() override {}
89 89
90 protected: 90 protected:
91 // RenderViewContextMenu implementation. 91 // RenderViewContextMenu implementation.
92 bool GetAcceleratorForCommandId(int command_id, 92 bool GetAcceleratorForCommandId(int command_id,
93 ui::Accelerator* accelerator) override { 93 ui::Accelerator* accelerator) const override {
94 return false; 94 return false;
95 } 95 }
96 }; 96 };
97 97
98 // This class keeps track of tabs as they are added to the browser. It will be 98 // This class keeps track of tabs as they are added to the browser. It will be
99 // "done" (i.e. won't block on Wait()) once |observations| tabs have been added. 99 // "done" (i.e. won't block on Wait()) once |observations| tabs have been added.
100 class TabsAddedNotificationObserver 100 class TabsAddedNotificationObserver
101 : public content::WindowedNotificationObserver { 101 : public content::WindowedNotificationObserver {
102 public: 102 public:
103 explicit TabsAddedNotificationObserver(size_t observations) 103 explicit TabsAddedNotificationObserver(size_t observations)
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after
1389 // https://crbug.com/620194. 1389 // https://crbug.com/620194.
1390 #define MAYBE_AppWindowIframe DISABLED_AppWindowIframe 1390 #define MAYBE_AppWindowIframe DISABLED_AppWindowIframe
1391 // Sends chrome.test.sendMessage from chrome.app.window.create's callback. 1391 // Sends chrome.test.sendMessage from chrome.app.window.create's callback.
1392 // The app window also adds an <iframe> to the page during window.onload. 1392 // The app window also adds an <iframe> to the page during window.onload.
1393 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_AppWindowIframe) { 1393 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_AppWindowIframe) {
1394 LoadAndLaunchPlatformApp("app_window_send_message", 1394 LoadAndLaunchPlatformApp("app_window_send_message",
1395 "APP_WINDOW_CREATE_CALLBACK"); 1395 "APP_WINDOW_CREATE_CALLBACK");
1396 } 1396 }
1397 1397
1398 } // namespace extensions 1398 } // namespace extensions
OLDNEW
« no previous file with comments | « ash/sysui/shelf_delegate_mus.cc ('k') | chrome/browser/download/download_shelf_context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698