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

Side by Side Diff: apps/native_app_window.h

Issue 23618036: Merge NOTIFICATION_RENDER_VIEW_HOST_CHANGED into NOTIFICATION_WEB_CONTENTS_SWAPPED. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « apps/app_window_contents.cc ('k') | apps/shell_window.cc » ('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 #ifndef APPS_NATIVE_APP_WINDOW_H_ 5 #ifndef APPS_NATIVE_APP_WINDOW_H_
6 #define APPS_NATIVE_APP_WINDOW_H_ 6 #define APPS_NATIVE_APP_WINDOW_H_
7 7
8 #include "apps/shell_window.h" 8 #include "apps/shell_window.h"
9 #include "components/web_modal/web_contents_modal_dialog_host.h" 9 #include "components/web_modal/web_contents_modal_dialog_host.h"
10 #include "ui/base/base_window.h" 10 #include "ui/base/base_window.h"
(...skipping 25 matching lines...) Expand all
36 virtual void UpdateWindowIcon() = 0; 36 virtual void UpdateWindowIcon() = 0;
37 37
38 // Called when the title of the window changes. 38 // Called when the title of the window changes.
39 virtual void UpdateWindowTitle() = 0; 39 virtual void UpdateWindowTitle() = 0;
40 40
41 // Allows the window to handle unhandled keyboard messages coming back from 41 // Allows the window to handle unhandled keyboard messages coming back from
42 // the renderer. 42 // the renderer.
43 virtual void HandleKeyboardEvent( 43 virtual void HandleKeyboardEvent(
44 const content::NativeWebKeyboardEvent& event) = 0; 44 const content::NativeWebKeyboardEvent& event) = 0;
45 45
46 // TODO(jianli): once http://crbug.com/123007 is fixed, we'll no longer need
47 // this.
48 virtual void RenderViewHostChanged() = 0;
49
50 // Returns the difference between the window bounds (including titlebar and 46 // Returns the difference between the window bounds (including titlebar and
51 // borders) and the content bounds, if any. 47 // borders) and the content bounds, if any.
52 virtual gfx::Insets GetFrameInsets() const = 0; 48 virtual gfx::Insets GetFrameInsets() const = 0;
53 49
54 // Hide or show this window as part of hiding or showing the app. 50 // Hide or show this window as part of hiding or showing the app.
55 // This may have different logic to Hide, Show, and ShowInactive as those are 51 // This may have different logic to Hide, Show, and ShowInactive as those are
56 // called via the AppWindow javascript API. 52 // called via the AppWindow javascript API.
57 virtual void ShowWithApp() = 0; 53 virtual void ShowWithApp() = 0;
58 virtual void HideWithApp() = 0; 54 virtual void HideWithApp() = 0;
59 55
60 virtual ~NativeAppWindow() {} 56 virtual ~NativeAppWindow() {}
61 }; 57 };
62 58
63 } // namespace apps 59 } // namespace apps
64 60
65 #endif // APPS_NATIVE_APP_WINDOW_H_ 61 #endif // APPS_NATIVE_APP_WINDOW_H_
OLDNEW
« no previous file with comments | « apps/app_window_contents.cc ('k') | apps/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698