[chromium-dev] Re: Getting Started with a New Project
What you have suggested seems to have solved the header file issue, unfortunately I am now getting the following errors: 1c:\chromium\src\views\view.h(161) : error C2589: '(' : illegal token on right side of '::' 1c:\chromium\src\views\view.h(161) : error C2059: syntax error : '::' 1c:\chromium\src\views\view.h(161) : error C2589: '(' : illegal token on right side of '::' There must be another header or definition that I am missing. Here is a snapshot of the code where the errors are being encountered: void SetBounds(int x, int y, int width, int height) { SetBounds(gfx::Rect(x, y, std::max(0, width), std::max(0, height)));// IT IS THIS LINE *** } Chromium seems to be undergoing some pretty major changes at the moment. Many thanks, Lea Hayes On 26 July, 04:48, Juan Baez tux...@gmail.com wrote: After some research and SVN history browsing I found out that ChromiumCanvas is no more. Instead, use the gfx::Canvas class. Your header files should look somewhat like this (for the example to compile): #include app/gfx/canvas.h #include views/view.h #include views/controls/label.h #include views/window/window.h #include views/window/window_delegate.h Hope that helps a little. On Jul 25, 8:34 pm, Juan Baez tux...@gmail.com wrote: Where you able to figure this out Kruncher? If so, could you provide me with some feedback as to how you resolved the problem? I am sort of trying to do something similar myself. On Jul 20, 2:41 am, Kruncher leaha...@gmail.com wrote: Yes, I tried adding thatprojectbut it didn't seem to help. On 19 July, 20:49, Thiago Farina thiago.far...@gmail.com wrote: Did you added the commonprojectto your solution? On Jul 19, 12:40 pm, Kruncher leaha...@gmail.com wrote: For the purposes of practice I am trying to create an empty Win32 Exe projectthat uses the demonstration code from: http://dev.chromium.org/developers/design-documents/chromeviews To do this I have created a new solution and an emptyproject. I have then added the demonstration code, and in theprojectsettings added the additional include/lib directories (which I copied from an Exe projectfrom the Chromium trunk). However, when I try to build theproject, I get the following compilation error: 1c:\chromium\src\quick_test\quick_test\views\main_window.cc(4) : fatal error C1083: Cannot open include file: 'chrome/common/gfx/ chrome_canvas.h': No such file or directory What steps are required to create a new solution/projectof this nature? I would really like to use the views API that Chromium has to offer. Many thanks, Lea Hayes --~--~-~--~~~---~--~~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~--~~~~--~~--~--~---
[chromium-dev] Re: How to attach to Renderer Process in XCode
On Thu, Jul 16, 2009 at 12:46 AM, Jeremy Moskovichjer...@chromium.org wrote: You can find instructions here: http://dev.chromium.org/developers/debugging-on-os-x Ultimately, we should really combine all the platform debugging articles into one page :| Best regards, Jeremy Thanks. I tried it. I saw this in the shell: [460:2055:4872081828141:WARNING:/Users/n179911/chromium/src/chrome/renderer/renderer_main.cc(65)] Renderer (460) paused waiting for debugger to attach @ pid And then I got XCode and Attached to '460'. But i see this in my shell, and chromium never get launched. [460:11783:4914670085769:ERROR:/Users/n179911/chromium/src/ipc/ipc_channel_posix.cc(649)] pipe error on 3: Broken pipe Thank you for any help. On Thu, Jul 16, 2009 at 9:29 AM, hap497 hap...@gmail.com wrote: Hi, chromium.org has this http://dev.chromium.org/developers/how-tos/debugging for debugging renderer process on Windows. My question is how can I do the same in XCode on MacOS X? I go to Run-Attach To Process, all the menu item entries are disabled. Thank you for any tip. --~--~-~--~~~---~--~~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~--~~~~--~~--~--~---
[chromium-dev] Re: How to attach to Renderer Process in XCode
You might try attaching gdb from the command-line. I've always had better results doing it that way than using xcode. Once you've started chromium with the --renderer-startup-dialog flag, you can attach by starting gdb in a terminal window and typing attach 460 (or whatever the pid of the renderer is). Once gdb is attached to the renderer, you can set any breakpoints you like and then continue to run chromium (c is continue by default). Note that every time a new renderer is started, chromium will pause until you tell it to continue (usually by attaching a debugger). -Paul Wicks On Sun, Jul 26, 2009 at 2:23 PM, n179911 n179...@gmail.com wrote: On Thu, Jul 16, 2009 at 12:46 AM, Jeremy Moskovichjer...@chromium.org wrote: You can find instructions here: http://dev.chromium.org/developers/debugging-on-os-x Ultimately, we should really combine all the platform debugging articles into one page :| Best regards, Jeremy Thanks. I tried it. I saw this in the shell: [460:2055:4872081828141:WARNING:/Users/n179911/chromium/src/chrome/renderer/renderer_main.cc(65)] Renderer (460) paused waiting for debugger to attach @ pid And then I got XCode and Attached to '460'. But i see this in my shell, and chromium never get launched. [460:11783:4914670085769:ERROR:/Users/n179911/chromium/src/ipc/ipc_channel_posix.cc(649)] pipe error on 3: Broken pipe Thank you for any help. On Thu, Jul 16, 2009 at 9:29 AM, hap497 hap...@gmail.com wrote: Hi, chromium.org has this http://dev.chromium.org/developers/how-tos/debugging for debugging renderer process on Windows. My question is how can I do the same in XCode on MacOS X? I go to Run-Attach To Process, all the menu item entries are disabled. Thank you for any tip. --~--~-~--~~~---~--~~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~--~~~~--~~--~--~---
[chromium-dev] Re: Getting Started with a New Project
You are not missing any header files. Windows has its own definition of min and max, and so does the STL library. So to avoid conflict between the two, define the preprocessor directive NOMINMAX in your project. -Original Message- From: chromium-dev@googlegroups.com [mailto:chromium-...@googlegroups.com] On Behalf Of Kruncher Sent: Sunday, July 26, 2009 2:48 PM To: Chromium-dev Subject: [chromium-dev] Re: Getting Started with a New Project What you have suggested seems to have solved the header file issue, unfortunately I am now getting the following errors: 1c:\chromium\src\views\view.h(161) : error C2589: '(' : illegal token on right side of '::' 1c:\chromium\src\views\view.h(161) : error C2059: syntax error : '::' 1c:\chromium\src\views\view.h(161) : error C2589: '(' : illegal token on right side of '::' There must be another header or definition that I am missing. Here is a snapshot of the code where the errors are being encountered: void SetBounds(int x, int y, int width, int height) { SetBounds(gfx::Rect(x, y, std::max(0, width), std::max(0, height)));// IT IS THIS LINE *** } Chromium seems to be undergoing some pretty major changes at the moment. Many thanks, Lea Hayes On 26 July, 04:48, Juan Baez tux...@gmail.com wrote: After some research and SVN history browsing I found out that ChromiumCanvas is no more. Instead, use the gfx::Canvas class. Your header files should look somewhat like this (for the example to compile): #include app/gfx/canvas.h #include views/view.h #include views/controls/label.h #include views/window/window.h #include views/window/window_delegate.h Hope that helps a little. On Jul 25, 8:34 pm, Juan Baez tux...@gmail.com wrote: Where you able to figure this out Kruncher? If so, could you provide me with some feedback as to how you resolved the problem? I am sort of trying to do something similar myself. On Jul 20, 2:41 am, Kruncher leaha...@gmail.com wrote: Yes, I tried adding thatprojectbut it didn't seem to help. On 19 July, 20:49, Thiago Farina thiago.far...@gmail.com wrote: Did you added the commonprojectto your solution? On Jul 19, 12:40 pm, Kruncher leaha...@gmail.com wrote: For the purposes of practice I am trying to create an empty Win32 Exe projectthat uses the demonstration code from: http://dev.chromium.org/developers/design-documents/chromeviews To do this I have created a new solution and an emptyproject. I have then added the demonstration code, and in theprojectsettings added the additional include/lib directories (which I copied from an Exe projectfrom the Chromium trunk). However, when I try to build theproject, I get the following compilation error: 1c:\chromium\src\quick_test\quick_test\views\main_window.cc(4) : fatal error C1083: Cannot open include file: 'chrome/common/gfx/ chrome_canvas.h': No such file or directory What steps are required to create a new solution/projectof this nature? I would really like to use the views API that Chromium has to offer. Many thanks, Lea Hayes --~--~-~--~~~---~--~~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~--~~~~--~~--~--~---
[chromium-dev] Re: How to attach to Renderer Process in XCode
Command line gdb is one way to go... I always use the XCode IDE gdb integration, as documented on the wiki. While trying to attach to the Chrome process directly from the IDE can get funky, the method documented on the wiki always works for me. XCode attaches itself to a running renderer which is paused [by calling pause() ] so you need to click continue in the IDE to get it to keep running and render a webpage. It's possible that the broken pipe you're seeing is the result of killing the renderer from the debugger. Best regards, Jeremy On Sun, Jul 26, 2009 at 9:23 PM, n179911 n179...@gmail.com wrote: On Thu, Jul 16, 2009 at 12:46 AM, Jeremy Moskovichjer...@chromium.org wrote: You can find instructions here: http://dev.chromium.org/developers/debugging-on-os-x Ultimately, we should really combine all the platform debugging articles into one page :| Best regards, Jeremy Thanks. I tried it. I saw this in the shell: [460:2055:4872081828141:WARNING:/Users/n179911/chromium/src/chrome/renderer/renderer_main.cc(65)] Renderer (460) paused waiting for debugger to attach @ pid And then I got XCode and Attached to '460'. But i see this in my shell, and chromium never get launched. [460:11783:4914670085769:ERROR:/Users/n179911/chromium/src/ipc/ipc_channel_posix.cc(649)] pipe error on 3: Broken pipe Thank you for any help. On Thu, Jul 16, 2009 at 9:29 AM, hap497 hap...@gmail.com wrote: Hi, chromium.org has this http://dev.chromium.org/developers/how-tos/debugging for debugging renderer process on Windows. My question is how can I do the same in XCode on MacOS X? I go to Run-Attach To Process, all the menu item entries are disabled. Thank you for any tip. --~--~-~--~~~---~--~~ Chromium Developers mailing list: chromium-dev@googlegroups.com View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~--~~~~--~~--~--~---