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

Side by Side Diff: apps/app_window.h

Issue 472383002: Add ProcessPowerCollector to audit power information. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Audit power in chrome_browser. Created 6 years, 4 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 | « no previous file | chrome/browser/DEPS » ('j') | chrome/browser/chrome_browser_main.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 APPS_APP_WINDOW_H_ 5 #ifndef APPS_APP_WINDOW_H_
6 #define APPS_APP_WINDOW_H_ 6 #define APPS_APP_WINDOW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // the renderer. 340 // the renderer.
341 void GetSerializedState(base::DictionaryValue* properties) const; 341 void GetSerializedState(base::DictionaryValue* properties) const;
342 342
343 // Called by the window API when events can be sent to the window for this 343 // Called by the window API when events can be sent to the window for this
344 // app. 344 // app.
345 void WindowEventsReady(); 345 void WindowEventsReady();
346 346
347 // Whether the app window wants to be alpha enabled. 347 // Whether the app window wants to be alpha enabled.
348 bool requested_alpha_enabled() const { return requested_alpha_enabled_; } 348 bool requested_alpha_enabled() const { return requested_alpha_enabled_; }
349 349
350 void SetAppWindowContentsForTesting(AppWindowContents* contents) {
Daniel Erat 2014/08/15 20:22:12 nit: pass a scoped_ptr<AppWindowContents> so the o
Daniel Nishi 2014/08/18 17:38:47 Done.
351 app_window_contents_.reset(contents);
352 }
353
350 protected: 354 protected:
351 virtual ~AppWindow(); 355 virtual ~AppWindow();
352 356
353 private: 357 private:
354 // PlatformAppBrowserTest needs access to web_contents() 358 // PlatformAppBrowserTest needs access to web_contents()
355 friend class extensions::PlatformAppBrowserTest; 359 friend class extensions::PlatformAppBrowserTest;
356 360
357 // content::WebContentsDelegate implementation. 361 // content::WebContentsDelegate implementation.
358 virtual void CloseContents(content::WebContents* contents) OVERRIDE; 362 virtual void CloseContents(content::WebContents* contents) OVERRIDE;
359 virtual bool ShouldSuppressDialogs() OVERRIDE; 363 virtual bool ShouldSuppressDialogs() OVERRIDE;
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 551
548 // Whether |alpha_enabled| was set in the CreateParams. 552 // Whether |alpha_enabled| was set in the CreateParams.
549 bool requested_alpha_enabled_; 553 bool requested_alpha_enabled_;
550 554
551 DISALLOW_COPY_AND_ASSIGN(AppWindow); 555 DISALLOW_COPY_AND_ASSIGN(AppWindow);
552 }; 556 };
553 557
554 } // namespace apps 558 } // namespace apps
555 559
556 #endif // APPS_APP_WINDOW_H_ 560 #endif // APPS_APP_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/DEPS » ('j') | chrome/browser/chrome_browser_main.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698